[HttpPost]
public async Task<IActionResult> Login(LoginDto login)
{
//return new JsonResult(new { status = "0", token = "token ok" });
if (login == null)
{
return BadRequest();
}
var result = await _authService.Login(login);
return result;
}
public class LoginDto
{
[MaxLength(100)]
public string Email { get; set; }
[MaxLength(100)]
public string Password { get; set; }
}