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

17 lines
428 B
C#
Raw Normal View History

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