Using YaStringLength and YaRequired

This commit is contained in:
2019-09-04 01:25:36 +01:00
parent 8a2f87bcb2
commit 65d6fdc6c6
62 changed files with 396 additions and 150 deletions

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations;
using Yavsc.Attributes.Validation;
namespace Yavsc.ViewModels
{
@ -7,12 +8,12 @@ namespace Yavsc.ViewModels
[Display(Name="EnroledLabel", ResourceType=typeof(EnrolerViewModel))]
public string EnroledUserName { get; set; }
[Required]
[YaRequired]
public string EnroledUserId { get; set; }
[Display(Name="RoleNameLabel", ResourceType=typeof(EnrolerViewModel))]
[Required]
[YaRequired]
public string RoleName { get; set; }
}
}