public async Task <ActionResult <UserProfile> > GetUserEmailAsync(string email) { var data = await unitOfWork.Users.GetUserByEmailAsync(email); if (data == null) { return(AppResponse.NotFound("User Not Found")); } return(AppResponse.Success(data)); }
public async Task <ActionResult <UserProfile> > GetById(int id) { var data = await unitOfWork.Users.GetByIdAsync(id); if (data == null) { return(AppResponse.NotFound("User Not Found")); } return(AppResponse.Success(data)); }