Пример #1
0
 public IActionResult Authenticate(string loginName, string password)
 {
     try
     {
         var manager = new ClientManager(_options);
         return(Ok(manager.AuthenticateUser(loginName, password)));
     }
     catch (Exception ex)
     {
         logger.Error(ex);
         return(BadRequest(ex.Message));
     }
 }