public async Task <ActionResult <DisplayGuestResource> > GetGuest(int id) { var result = await _guestService.FindByIdAsync(id); if (!result.Success) { return(NotFound(result.Message)); } return(_mapper.Map <Guest, DisplayGuestResource>(result.Guest)); }