public void AddPostHistoryTypes(ApiPostHistoryTypesResponseModel item) { if (!this.PostHistoryTypes.Any(x => x.Id == item.Id)) { this.PostHistoryTypes.Add(item); } }
public virtual ApiPostHistoryTypesRequestModel MapResponseToRequest( ApiPostHistoryTypesResponseModel response) { var request = new ApiPostHistoryTypesRequestModel(); request.SetProperties( response.Type); return(request); }
public virtual ApiPostHistoryTypesResponseModel MapRequestToResponse( int id, ApiPostHistoryTypesRequestModel request) { var response = new ApiPostHistoryTypesResponseModel(); response.SetProperties(id, request.Type); return(response); }