コード例 #1
0
        //[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());
        }
コード例 #2
0
        public List <SaleModality> GetSaleModalitys()
        {
            var result = saleModalityRepository.SaleModalitys();

            return(result);
        }