Пример #1
0
 public void AddPostHistoryType(ApiPostHistoryTypeClientResponseModel item)
 {
     if (!this.PostHistoryTypes.Any(x => x.Id == item.Id))
     {
         this.PostHistoryTypes.Add(item);
     }
 }
Пример #2
0
        public virtual ApiPostHistoryTypeClientRequestModel MapClientResponseToRequest(
            ApiPostHistoryTypeClientResponseModel response)
        {
            var request = new ApiPostHistoryTypeClientRequestModel();

            request.SetProperties(
                response.RwType);
            return(request);
        }
Пример #3
0
        public virtual ApiPostHistoryTypeClientResponseModel MapClientRequestToResponse(
            int id,
            ApiPostHistoryTypeClientRequestModel request)
        {
            var response = new ApiPostHistoryTypeClientResponseModel();

            response.SetProperties(id,
                                   request.RwType);
            return(response);
        }
 public void SetPostHistoryTypeIdNavigation(ApiPostHistoryTypeClientResponseModel value)
 {
     this.PostHistoryTypeIdNavigation = value;
 }