public IActionResult Auth([FromBody] User value) { var user = _profileService.Authorization(value); if (user == null) { return(BadRequest(new { message = "Username or password is incorrect" })); } return(Ok(user)); }
public IActionResult Auth([FromBody] User value) { var user = _profileService.Authorization(value); if (user == null) { return(BadRequest(new { message = "Username or password is incorrect" })); } return(Ok(user)); }