Beispiel #1
0
        public bool DuplicateValidate(RoleGroupModel model)
        {
            var sameTitleCategoryExists = DataStorageService.GetAllRoleGroups().Any(c => c.RoleGroupName.Equals(model.RoleGroupName, StringComparison.CurrentCultureIgnoreCase) && !c.Id.Equals(model.Id));

            return(!sameTitleCategoryExists);
        }
Beispiel #2
0
 public override IEnumerable <RoleGroupModel> GetAll()
 {
     return(DataStorageService.GetAllRoleGroups());
 }