public virtual ApiPostLinkClientRequestModel MapClientResponseToRequest( ApiPostLinkClientResponseModel response) { var request = new ApiPostLinkClientRequestModel(); request.SetProperties( response.CreationDate, response.LinkTypeId, response.PostId, response.RelatedPostId); return(request); }
public virtual ApiPostLinkClientResponseModel MapClientRequestToResponse( int id, ApiPostLinkClientRequestModel request) { var response = new ApiPostLinkClientResponseModel(); response.SetProperties(id, request.CreationDate, request.LinkTypeId, request.PostId, request.RelatedPostId); return(response); }