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

            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.Name, model.Name);
            patch.Replace(x => x.ProductCategoryID, model.ProductCategoryID);
            patch.Replace(x => x.Rowguid, model.Rowguid);
            return(patch);
        }
        public virtual ApiProductSubcategoryRequestModel MapResponseToRequest(
            ApiProductSubcategoryResponseModel response)
        {
            var request = new ApiProductSubcategoryRequestModel();

            request.SetProperties(
                response.ModifiedDate,
                response.Name,
                response.ProductCategoryID,
                response.Rowguid);
            return(request);
        }
        public virtual ApiProductSubcategoryResponseModel MapRequestToResponse(
            int productSubcategoryID,
            ApiProductSubcategoryRequestModel request)
        {
            var response = new ApiProductSubcategoryResponseModel();

            response.SetProperties(productSubcategoryID,
                                   request.ModifiedDate,
                                   request.Name,
                                   request.ProductCategoryID,
                                   request.Rowguid);
            return(response);
        }