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

            patch.Replace(x => x.ContactTypeID, model.ContactTypeID);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.PersonID, model.PersonID);
            patch.Replace(x => x.Rowguid, model.Rowguid);
            return(patch);
        }
        public virtual ApiBusinessEntityContactRequestModel MapResponseToRequest(
            ApiBusinessEntityContactResponseModel response)
        {
            var request = new ApiBusinessEntityContactRequestModel();

            request.SetProperties(
                response.ContactTypeID,
                response.ModifiedDate,
                response.PersonID,
                response.Rowguid);
            return(request);
        }
        public virtual ApiBusinessEntityContactResponseModel MapRequestToResponse(
            int businessEntityID,
            ApiBusinessEntityContactRequestModel request)
        {
            var response = new ApiBusinessEntityContactResponseModel();

            response.SetProperties(businessEntityID,
                                   request.ContactTypeID,
                                   request.ModifiedDate,
                                   request.PersonID,
                                   request.Rowguid);
            return(response);
        }