예제 #1
0
파일: Role.cs 프로젝트: CoolHorseSoft/Cms
 public override IEnumerable <RoleModel> GetAll()
 {
     return(DataStorageService.GetAllRoles());
 }
예제 #2
0
        public bool DuplicateValidate(RoleModel model)
        {
            var sameTitleCategoryExists = DataStorageService.GetAllRoles().Any(c => c.RoleName.Equals(model.RoleName, StringComparison.CurrentCultureIgnoreCase) && !c.Id.Equals(model.Id));

            return(!sameTitleCategoryExists);
        }