Пример #1
0
        public ActionResult Add()
        {
            Order_Components_manager ordrcomponent = new Order_Components_manager();

            ViewBag.fk      = ordrcomponent.getfkItem();
            ViewBag.fkorder = ordrcomponent.getfkorder();

            return(View());
        }
Пример #2
0
        public ActionResult update(int Id)
        {
            Order_Components_manager ordrcomponent = new Order_Components_manager();

            ViewBag.fk      = ordrcomponent.getfkItem();
            ViewBag.fkorder = ordrcomponent.getfkorder();

            Concreate.Irepostory <Order_Components> order_component = new Order_Components_manager();
            var x = order_component.Get_Item(Id);

            return(View(x));
        }
Пример #3
0
        public ActionResult update(Order_Components order_components)
        {
            Order_Components_manager ordrcomponent = new Order_Components_manager();

            ViewBag.fk      = ordrcomponent.getfkItem();
            ViewBag.fkorder = ordrcomponent.getfkorder();


            if (ModelState.IsValid)
            {
                Concreate.Irepostory <Order_Components> order_component = new Order_Components_manager();
                order_component.Update_Item(order_components);
            }
            return(View());
        }
Пример #4
0
        public ActionResult Add(Order_Components item)
        {
            Order_Components_manager ordrcomponent = new Order_Components_manager();

            ViewBag.fk      = ordrcomponent.getfkItem();
            ViewBag.fkorder = ordrcomponent.getfkorder();


            if (ModelState.IsValid)
            {
                Concreate.Irepostory <Order_Components> order_component = new Order_Components_manager();
                order_component.Add(item);
            }
            return(View("Add"));
        }
Пример #5
0
        // GET: order_component
        public ActionResult Index()
        {
            Order_Components_manager ordrcomponent = new Order_Components_manager();

            ViewBag.fk      = ordrcomponent.getfkItem();
            ViewBag.fkorder = ordrcomponent.getfkorder();



            Concreate.Irepostory <Order_Components> order_components = new Order_Components_manager();

            var ALL_order_components = order_components.GetAll();

            return(View(ALL_order_components));
        }