Exemple #1
0
        public QuoteInfoDto CreateQuote(QuoteInfoDto dto)
        {
            ProductSystem   productSystem = new ProductSystem(UnitOfWork);
            ProductInfoData productData   = productSystem.RetrieveProductInfo(dto.ProductId);

            // TODO: fill some fields
            dto.ProductName = productData.Name;
            dto.Amount      = productData.UnitPrice * 1;

            return(dto);
        }
Exemple #2
0
        public QuoteInfoDto CreateQuote(object productId)
        {
            ArgumentValidator.IsNotNull("productId", productId);

            QuoteInfoDto    dto           = new QuoteInfoDto();
            ProductSystem   productSystem = new ProductSystem(UnitOfWork);
            ProductInfoData productData   = productSystem.RetrieveProductInfo(productId);

            dto.ProductId   = productId;
            dto.ProductName = productData.Name;
            dto.Amount      = productData.UnitPrice * 1;

            return(dto);
        }
 public ProductFacade(IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     ProductSystem = new ProductSystem(unitOfWork);
 }