Example #1
0
        // GET: Categories
        //[Authorize]


        public JsonResult LoadData()
        {
            //var data = db.Categories.ToList();
            var data = distributorService.GetAll();

            return(Json(new { data }, JsonRequestBehavior.AllowGet));
        }
Example #2
0
 public object GetDistributorList()
 {
     try
     {
         return(_distributorService.GetAll(new Reginfo()));
     }
     catch (Exception ex)
     {
         return(errorLogService.InsertToErrorLog(ex, MethodBase.GetCurrentMethod().Name, Request.Headers["UserInfo"].ToString()));
     }
 }