Example #1
0
 public ActionResult getAllCommodities([DataSourceRequest] DataSourceRequest request)
 {
     var dt = new SelectList(_commonService.GetCommodities(), "CommodityID", "Name");
     //var dt=_commonService.GetCommodities();
     return Json(dt.ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
 }