Exemplo n.º 1
0
 public void AddEventRelatedDocument(ApiEventRelatedDocumentResponseModel item)
 {
     if (!this.EventRelatedDocuments.Any(x => x.Id == item.Id))
     {
         this.EventRelatedDocuments.Add(item);
     }
 }
        public virtual ApiEventRelatedDocumentRequestModel MapResponseToRequest(
            ApiEventRelatedDocumentResponseModel response)
        {
            var request = new ApiEventRelatedDocumentRequestModel();

            request.SetProperties(
                response.EventId,
                response.RelatedDocumentId);
            return(request);
        }
        public virtual ApiEventRelatedDocumentResponseModel MapRequestToResponse(
            int id,
            ApiEventRelatedDocumentRequestModel request)
        {
            var response = new ApiEventRelatedDocumentResponseModel();

            response.SetProperties(id,
                                   request.EventId,
                                   request.RelatedDocumentId);
            return(response);
        }