Esempio n. 1
0
        public ActionResult Create()
        {
            ViewBag.ProductList  = new SelectList(SVM.ProductsList(), "product_ID", "name");
            ViewBag.WayToPayList = new SelectList(SVM.WayToPayListing(), "wayToPay_ID", "wayToPay");
            ViewBag.ClientList   = new SelectList(CVM.ClientsList(), "client_ID", "name");
            ViewBag.TypeList     = new SelectList(PVM.SaleTypeListing(), "sale_type_ID", "sale_type");

            return(View());
        }
Esempio n. 2
0
        // GET: Client
        public ActionResult Index()
        {
            IEnumerable <Client> List = CVM.ClientsList();

            return(View(List));
        }