public JsonPatchDocument <ApiUnitMeasureRequestModel> CreatePatch(ApiUnitMeasureRequestModel model)
        {
            var patch = new JsonPatchDocument <ApiUnitMeasureRequestModel>();

            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.Name, model.Name);
            return(patch);
        }
        public virtual ApiUnitMeasureRequestModel MapResponseToRequest(
            ApiUnitMeasureResponseModel response)
        {
            var request = new ApiUnitMeasureRequestModel();

            request.SetProperties(
                response.ModifiedDate,
                response.Name);
            return(request);
        }
        public virtual ApiUnitMeasureResponseModel MapRequestToResponse(
            string unitMeasureCode,
            ApiUnitMeasureRequestModel request)
        {
            var response = new ApiUnitMeasureResponseModel();

            response.SetProperties(unitMeasureCode,
                                   request.ModifiedDate,
                                   request.Name);
            return(response);
        }