Esempio n. 1
0
        public async Task <ActionResult <LoginSuccessDto> > AgentDashboardAsync()
        {
            var result = await _agent.AgentDashboard();

            if (result.Message == "Invalid username or password")
            {
                return(BadRequest(result));
            }
            return(Ok(result));
        }