Exemplo n.º 1
0
        public void SetViewBagNetworkOperator(int?selectedIDNetworkOperator = null)
        {
            int idCustomer          = Int32.Parse(Session["IDCustomer"].ToString());
            var networkOperatorDAO  = new NetworkOperatorDAO();
            var listNetworkOperator = networkOperatorDAO.getNetworkOperator(idCustomer);

            ViewBag.IDNetworkOperator = new SelectList(listNetworkOperator, "IDNetworkOperator", "NetworkOperatorName", selectedIDNetworkOperator);
        }
Exemplo n.º 2
0
        public ActionResult NetworkOperatorPartial()
        {
            int idCustomer         = Int32.Parse(Session["IDCustomer"].ToString());
            var networkOperatorDAO = new NetworkOperatorDAO();
            IEnumerable <NetworkOperator> listNetworkOperators = networkOperatorDAO.getNetworkOperator(idCustomer);

            return(PartialView(listNetworkOperators));
        }
        public ActionResult NetworkOperator()
        {
            int idCustomer         = Int32.Parse(Session["IDCustomer"].ToString());
            var networkOperatorDAO = new NetworkOperatorDAO();
            IEnumerable <NetworkOperator> listNetworkOperator        = networkOperatorDAO.getNetworkOperator(idCustomer);
            IEnumerable <NetworkOperator> listNetworkOperatorDisplay = networkOperatorDAO.getNetworkOperatorDisplay(listNetworkOperator, idCustomer);

            return(View(listNetworkOperatorDisplay));
        }