// GET: Categories //[Authorize] public JsonResult LoadData() { //var data = db.Categories.ToList(); var data = distributorService.GetAll(); return(Json(new { data }, JsonRequestBehavior.AllowGet)); }
public object GetDistributorList() { try { return(_distributorService.GetAll(new Reginfo())); } catch (Exception ex) { return(errorLogService.InsertToErrorLog(ex, MethodBase.GetCurrentMethod().Name, Request.Headers["UserInfo"].ToString())); } }