Exemple #1
0
        public ActionResult OrderDetailDestroy([DataSourceRequest] DataSourceRequest request, OrderDetail location)
        {
            BL.OrderDetails blOrderDetails = new BL.OrderDetails();
            OrderDetail     model          = blOrderDetails.SoftDelete(location);

            return(Json(new[] { model }.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult OrderDetailSelectAll([DataSourceRequest] DataSourceRequest request)
        {
            BL.OrderDetails    blOrderDetails = new BL.OrderDetails();
            List <OrderDetail> model          = blOrderDetails.SelectAll();

            return(Json(model.ToDataSourceResult(request), JsonRequestBehavior.AllowGet));
        }