コード例 #1
0
        public IActionResult Post([FromBody] clientLoginModel value)
        {
            LoginCheck checkLogin      = new LoginCheck();
            clientUser clientUserModel = checkLogin.Check(value);

            if (clientUserModel != null)
            {
                return(Ok(clientUserModel));
            }
            else
            {
                return(BadRequest("Invalid Username or Password"));
            }
        }