Exemple #1
0
 public IActionResult LoginAuthentication(LoginRequest loginRequest)
 {
     try
     {
         User   currentUser = _login.Login(loginRequest);
         string authHeader  = _login.AuthString(currentUser);
         return(Ok(authHeader));
     }
     catch (Exception e)
     {
         return(BadRequest());
     }
 }