public void AddPostHistoryType(ApiPostHistoryTypeClientResponseModel item) { if (!this.PostHistoryTypes.Any(x => x.Id == item.Id)) { this.PostHistoryTypes.Add(item); } }
public virtual ApiPostHistoryTypeClientRequestModel MapClientResponseToRequest( ApiPostHistoryTypeClientResponseModel response) { var request = new ApiPostHistoryTypeClientRequestModel(); request.SetProperties( response.RwType); return(request); }
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; }