Esempio n. 1
0
        public ActionResult InsertIndex(Models.Orders selectitem)
        {
            Models.OrdersService ordersService = new Models.OrdersService();
            Models.CodeService   codeService   = new Models.CodeService();

            ViewBag.CompanyName     = this.codeService.GetCustomer();
            ViewBag.empData         = this.codeService.GetEmpname();
            ViewBag.shipData        = this.codeService.GetShipperName();
            ViewBag.ProductCodeData = this.codeService.GetProduct();
            return(View(new Models.Orders()));
        }
Esempio n. 2
0
        public JsonResult DeleteOrders(string OrderID)
        {
            try
            {
                Models.OrdersService OrdersService = new Models.OrdersService();
                OrdersService.DeleteOrdersById(OrderID);

                return(this.Json(true));
            }
            catch (Exception)
            {
                return(this.Json(false));
            }
        }