Beispiel #1
0
        public GetProductResponse Get(GetProductRequest request)
        {
            var readByProductIdRequest  = _mapper.Map <ProductDetailsModel>(request);
            var readByProductIdResponse = _productDetailsManager.ReadByProductId(readByProductIdRequest);

            var getProductResponse = _mapper.Map <GetProductResponse>(readByProductIdResponse);

            return(getProductResponse);
        }
Beispiel #2
0
        public GetProductDetailsResponse Get(GetProductDetailsRequest request)
        {
            //Is doing servicemodel/Datamodel too much complexity? D:
            var readByProductIdRequest  = _mapper.Map <ProductDetailsModel>(request);
            var readByProductIdResponse = _productDetailsManager.ReadByProductId(readByProductIdRequest);

            var getProductDetailsResponse = _mapper.Map <GetProductDetailsResponse>(readByProductIdResponse);

            return(getProductDetailsResponse);
        }