Beispiel #1
0
        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));
        }