//[HttpPost]
        public ActionResult CreateWhitDefault(ProductQuote productQuote)
        {
            ViewBag.CustomerID         = new SelectList(customerRepository.FindCustomers(), "CustomerID", "Company");
            ViewBag.ProductID          = new SelectList(productRepository.Products(), "ProductID", "FullName");
            ViewBag.SaleModalityID     = new SelectList(saleModalityRepository.SaleModalitys(), "SaleModalityID", "Description");
            ViewBag.GeographicAreaID   = new SelectList(geographicAreaRepository.GeographicAreas(), "GeographicAreaID", "Name");
            ViewBag.PaymentDeadlineID  = new SelectList(paymentDeadlineRepository.PaymentDeadlines(), "PaymentDeadlineID", "Description");
            ViewBag.ExchangeTypeID     = new SelectList(exchangeTypeRepository.ExchangeTypes(), "ExchangeTypeID", "Description");
            ViewBag.DeliveryAmount     = new SelectList(deliveryAmountRepository.DeliveryAmounts(), "DeliveryAmountID", "Description");
            ViewBag.MaximumMonthsStock = new SelectList(stockTimeRepository.StockTimes(), "StockTimeID", "Description");

            HttpContext.RewritePath("/WayOfException/CreateWhitDefault");

            return(View());
        }
Exemple #2
0
        public List <DeliveryAmount> GetDeliveryAmount()
        {
            var result = deliveryAmountRepository.DeliveryAmounts();

            return(result);
        }