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

            patch.Replace(x => x.EmailAddress1, model.EmailAddress1);
            patch.Replace(x => x.EmailAddressID, model.EmailAddressID);
            patch.Replace(x => x.ModifiedDate, model.ModifiedDate);
            patch.Replace(x => x.Rowguid, model.Rowguid);
            return(patch);
        }
        public virtual ApiEmailAddressRequestModel MapResponseToRequest(
            ApiEmailAddressResponseModel response)
        {
            var request = new ApiEmailAddressRequestModel();

            request.SetProperties(
                response.EmailAddress1,
                response.EmailAddressID,
                response.ModifiedDate,
                response.Rowguid);
            return(request);
        }
        public virtual ApiEmailAddressResponseModel MapRequestToResponse(
            int businessEntityID,
            ApiEmailAddressRequestModel request)
        {
            var response = new ApiEmailAddressResponseModel();

            response.SetProperties(businessEntityID,
                                   request.EmailAddress1,
                                   request.EmailAddressID,
                                   request.ModifiedDate,
                                   request.Rowguid);
            return(response);
        }