public JsonPatchDocument <ApiLinkTypeRequestModel> CreatePatch(ApiLinkTypeRequestModel model) { var patch = new JsonPatchDocument <ApiLinkTypeRequestModel>(); patch.Replace(x => x.Type, model.Type); return(patch); }
public virtual ApiLinkTypeRequestModel MapResponseToRequest( ApiLinkTypeResponseModel response) { var request = new ApiLinkTypeRequestModel(); request.SetProperties( response.Type); return(request); }
public virtual ApiLinkTypeResponseModel MapRequestToResponse( int id, ApiLinkTypeRequestModel request) { var response = new ApiLinkTypeResponseModel(); response.SetProperties(id, request.Type); return(response); }