示例#1
0
        public IHttpActionResult Post(LoginModel userLogin)
        {
            var responseData = _userLogin.LoginUserWithEmailAndPassword(userLogin.Email, userLogin.Password);

            if (responseData == null)
            {
                return(Content(HttpStatusCode.BadRequest, new { Error = "Either Email or Password is Invalid" }));
            }
            Debug.Print(responseData.UserID.ToString());
            return(Content(HttpStatusCode.OK, responseData));
        }