public bool DuplicateValidate(UserModel model) { var sameTitleCategoryExists = DataStorageService.GetAllUsers().Any(c => c.UserName.Equals(model.UserName, StringComparison.CurrentCultureIgnoreCase) && !c.Id.Equals(model.Id)); return(!sameTitleCategoryExists); }
public override IEnumerable <UserModel> GetAll() { return(DataStorageService.GetAllUsers()); }