Esempio n. 1
0
        public virtual ApiStoreRequestModel MapResponseToRequest(
            ApiStoreResponseModel response)
        {
            var request = new ApiStoreRequestModel();

            request.SetProperties(
                response.Demographic,
                response.ModifiedDate,
                response.Name,
                response.Rowguid,
                response.SalesPersonID);
            return(request);
        }
Esempio n. 2
0
        public virtual ApiStoreResponseModel MapRequestToResponse(
            int businessEntityID,
            ApiStoreRequestModel request)
        {
            var response = new ApiStoreResponseModel();

            response.SetProperties(businessEntityID,
                                   request.Demographic,
                                   request.ModifiedDate,
                                   request.Name,
                                   request.Rowguid,
                                   request.SalesPersonID);
            return(response);
        }