Пример #1
0
        public virtual ApiProductPhotoRequestModel MapResponseToRequest(
            ApiProductPhotoResponseModel response)
        {
            var request = new ApiProductPhotoRequestModel();

            request.SetProperties(
                response.LargePhoto,
                response.LargePhotoFileName,
                response.ModifiedDate,
                response.ThumbNailPhoto,
                response.ThumbnailPhotoFileName);
            return(request);
        }
Пример #2
0
        public virtual ApiProductPhotoResponseModel MapRequestToResponse(
            int productPhotoID,
            ApiProductPhotoRequestModel request)
        {
            var response = new ApiProductPhotoResponseModel();

            response.SetProperties(productPhotoID,
                                   request.LargePhoto,
                                   request.LargePhotoFileName,
                                   request.ModifiedDate,
                                   request.ThumbNailPhoto,
                                   request.ThumbnailPhotoFileName);
            return(response);
        }