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