Пример #1
0
 public void AddInvitation(ApiInvitationResponseModel item)
 {
     if (!this.Invitations.Any(x => x.Id == item.Id))
     {
         this.Invitations.Add(item);
     }
 }
Пример #2
0
        public virtual ApiInvitationRequestModel MapResponseToRequest(
            ApiInvitationResponseModel response)
        {
            var request = new ApiInvitationRequestModel();

            request.SetProperties(
                response.InvitationCode,
                response.JSON);
            return(request);
        }
Пример #3
0
        public virtual ApiInvitationResponseModel MapRequestToResponse(
            string id,
            ApiInvitationRequestModel request)
        {
            var response = new ApiInvitationResponseModel();

            response.SetProperties(id,
                                   request.InvitationCode,
                                   request.JSON);
            return(response);
        }