public IActionResult Signin([FromBody] UserVO user) { if (user == null) { return(BadRequest("Invalid client request")); } var token = _loginBusiness.ValidateCredentials(user); if (token == null) { return(Unauthorized()); } return(Ok(token)); }
public IActionResult SignIn([FromBody] EmployeeVO employee) { if (employee == null) { return(BadRequest("Invalid Request")); } var token = _loginBusiness.ValidateCredentials(employee); if (token == null) { return(Unauthorized()); } return(Ok(token)); }
public IActionResult Signin([FromBody] UserVO user) { if (user == null) { return(BadRequest("Nullable user")); } var token = _business.ValidateCredentials(user); if (token == null) { return(Unauthorized()); } return(Ok(token)); }
public IActionResult SigIn([FromBody] UsuarioVO userVO) { if (userVO == null) { return(BadRequest("Invalid Client Request")); } var token = _business.ValidateCredentials(userVO); if (token == null) { return(Unauthorized()); } return(Ok(token)); }