Exemplo n.º 1
0
 public ActionResult Index(string dateFrom, string dateTo, string customerId, string id)
 {
     try
     {
         ViewBag.Id = id;
         var identity = (LoginIdentity)Thread.CurrentPrincipal.Identity;
         var dataSet  = _rawSqlService.getSalesList(identity.CompanyId, identity.BranchId, customerId, dateFrom, dateTo);
         return(View(dataSet));
     }
     catch (Exception ex)
     {
         return(JavaScript($"ShowResult('{ex.Message}','failure')"));
     }
 }