Esempio n. 1
0
 public async Task <QuerySingleResult <string> > AdminLogin([FromBody] LoginViewModel loginViewModel)
 {
     try
     {
         return(await _accountManager.AdminLogin(_mapper.Map <LoginModel>(loginViewModel)));
     }
     catch (Exception ex)
     {
         return(new QuerySingleResult <string>(ex.Message));
     }
 }