public IHttpActionResult test()
        {
            AuthWebApiKios.RequestModels.UserAuthModel user = new AuthWebApiKios.RequestModels.UserAuthModel
            {
                Password = "******",
                UserName = "******"
            };
            var result_user = _UserService.CheckUser(user);

            return Ok(result_user);
        }
Пример #2
0
        public IHttpActionResult test()
        {
            AuthWebApiKios.RequestModels.UserAuthModel user = new AuthWebApiKios.RequestModels.UserAuthModel
            {
                Password = "******",
                UserName = "******"
            };
            var result_user = _UserService.CheckUser(user);

            return(Ok(result_user));
        }
 public User CheckUser(UserAuthModel user)
 {
     return _UserRepository.Find(x => x.Username == user.UserName && x.Password == user.Password).FirstOrDefault();
 }