public async Task <IActionResult> GetByLoginAsync(string email, string password) { if (await _repo.GetUserByLoginAsync(email, password) is Domain.Models.Users user) { Users resource = Mapper.MapUsers(user); return(Ok(resource)); } return(NotFound("Incorrect email/password. Please try again.")); }