コード例 #1
0
        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);
        }
コード例 #2
0
 public override IEnumerable <UserModel> GetAll()
 {
     return(DataStorageService.GetAllUsers());
 }