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

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

            request.SetProperties(
                response.ModifiedDate,
                response.Name);
            return(request);
        }
        public virtual ApiContactTypeResponseModel MapRequestToResponse(
            int contactTypeID,
            ApiContactTypeRequestModel request)
        {
            var response = new ApiContactTypeResponseModel();

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