//public JsonResult GetSubInv() //{ // return Json(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode), JsonRequestBehavior.AllowGet); //} #endregion #region Grid Methods public ActionResult SubInv_Read([DataSourceRequest] DataSourceRequest request) { //Mappings.ToModel(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode)); return(Json(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode).ToDataSourceResult(request))); }
public JsonResult GetSubInv() { return(Json(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode), JsonRequestBehavior.AllowGet)); }
public IEnumerable <SubInventory> Get() { return(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode)); }