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