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")); } }