public async Task <ActionResult <LoginSuccessDto> > AgentLoginAsync([FromBody] LoginDto login) { var result = await _agent.AgentLoginAsync(login); if (result.Message != "Login Successful") { return(BadRequest(result.Message)); } return(Ok(result)); }