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())); }
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)); } }