localizing bug record creations

This commit is contained in:
2019-06-16 21:09:50 +01:00
parent 4e67b9378a
commit 446fc70f5d
7 changed files with 63 additions and 99 deletions

View File

@ -15,10 +15,14 @@ namespace Yavsc.Models.IT.Fixing
public long? FeatureId { get; set; }
[StringLength(240, ErrorMessageResourceType=typeof(Yavsc.Models.IT.Fixing.Bug), ErrorMessageResourceName="TitleTooLong")]
[YaStringLength(240, MinimumLength=4 ,
ErrorMessageResourceType=typeof(Yavsc.Models.IT.Fixing.Bug),
ErrorMessageResourceName="TitleSizeError")]
public string Title { get; set; }
[StringLength(4096)]
[YaStringLength(4096,
ErrorMessageResourceType=typeof(Yavsc.Models.IT.Fixing.Bug),
ErrorMessageResourceName="DescSizeError")]
public string Description { get; set; }
public BugStatus Status { get; set; }