Example #1
0
 public async Task <IActionResult> UserLogin([FromBody] UserLoginDTO data)
 {
     if (await _userProcessor.VerifyUser(data))
     {
         return(Ok(Task.Run(() => _userProcessor.GetUserByEmail(data.userEmail))));
     }
     else
     {
         return(BadRequest("Failed to log in"));
     }
 }