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

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

            request.SetProperties(
                response.ModifiedDate,
                response.Name);
            return(request);
        }
        public virtual ApiScrapReasonResponseModel MapRequestToResponse(
            short scrapReasonID,
            ApiScrapReasonRequestModel request)
        {
            var response = new ApiScrapReasonResponseModel();

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