public IActionResult Login(LoginRequest login) { var res = _login.Autenticar(login); if (res == null) { return(BadRequest(new { msg = "Usuario y/o contraseƱa incorrecta" })); } return(Ok(res)); }