//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)));
        }
Beispiel #2
0
 public JsonResult GetSubInv()
 {
     return(Json(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode), JsonRequestBehavior.AllowGet));
 }
Beispiel #3
0
 public IEnumerable <SubInventory> Get()
 {
     return(_subInventoryService.Queryable().OrderBy(s => s.SubInvCode));
 }