public bool CheckRegistrationForUser(UserModel user)
        {
            UserModel registeredUser = _userModelService.GetAllUser()
                                       .FirstOrDefault((x) => x.Email == user.Email && x.Password == user.Password);

            if (registeredUser != null)
            {
                _settingsManager.UserId = registeredUser.Id;
            }

            return(registeredUser != null);
        }
Esempio n. 2
0
 public List <UserModel> GetAllUser()
 {
     return(userModelService.GetAllUser());
 }