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