Files
mixtape/zero.Core/Localization/CountryStore.cs
T

17 lines
420 B
C#
Raw Normal View History

using FluentValidation.Results;
2021-11-23 22:56:22 +01:00
2021-11-24 13:56:08 +01:00
namespace zero.Localization;
2021-11-23 22:56:22 +01:00
2021-11-26 12:31:33 +01:00
public class CountryStore : EntityStore<Country>, ICountryStore
2021-11-23 22:56:22 +01:00
{
2021-11-26 12:31:33 +01:00
public CountryStore(IStoreContext context) : base(context) { }
2021-11-23 22:56:22 +01:00
public override Task<ValidationResult> Validate(ZeroValidationContext ctx, Country model)
2021-11-23 22:56:22 +01:00
{
return new CountryValidator(ctx).ValidateAsync(model);
2021-11-23 22:56:22 +01:00
}
}
2021-11-26 12:31:33 +01:00
public interface ICountryStore : IEntityStore<Country> { }