Using YaStringLength and YaRequired

This commit is contained in:
Paul Schneider 2019-09-04 01:25:36 +01:00
commit 9457ba71d1
62 changed files with 396 additions and 150 deletions

View file

@ -13,6 +13,7 @@ using Microsoft.Extensions.Localization;
using Yavsc.ViewModels.PayPal;
using Yavsc.Models.HairCut;
using Yavsc.Abstract.Identity;
using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Haircut
{
@ -65,8 +66,7 @@ namespace Yavsc.Models.Haircut
set;
}
[Display(Name = "Informations complémentaires"),
StringLengthAttribute(512)]
[Display(Name = "Informations complémentaires"), YaStringLength(512)]
[DisplayFormat(ConvertEmptyStringToNull = true, NullDisplayText = "[pas d'informations complémentaires]")]
public string AdditionalInfo { get; set; }