예제 #1
0
        public InvitationDTO GetCertainInvitationForLoggedUser(long userID, long invitationID)
        {
            var invitation = _invitationService.Find(invitationID);

            if (invitation == null)
            {
                throw new NotFoundException(ErrorCodes.InvitationNotFound);
            }

            return(Mapper.Map <InvitationDTO>(invitation));
        }