Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public override IEnumerable <RoleGroupModel> GetAll()
 {
     return(DataStorageService.GetAllRoleGroups());
 }