Beispiel #1
0
 public ActionResult Search(TaxViewModels model)
 {
     try
     {
         var datas = _factory.GetListTaxV2(model.StoreID, null, CurrentUser.ListOrganizationId);
         model.ListItem = datas;
     }
     catch (Exception ex)
     {
         _logger.Error("Tax_Search: " + ex);
         return(new HttpStatusCodeResult(400, ex.Message));
     }
     return(PartialView("_ListData", model));
 }
Beispiel #2
0
 public ActionResult Search(TaxPurchasingViewModels model)
 {
     try
     {
         var datas = _factory.GetListTaxV2(model.StoreID, null, CurrentUser.ListOrganizationId, true);
         model.ListItem = datas.Where(o => o.Type == (int)Commons.ETaxType.Xero).ToList();
     }
     catch (Exception ex)
     {
         _logger.Error("TaxPurchasing_Search: " + ex);
         return(new HttpStatusCodeResult(400, ex.Message));
     }
     return(PartialView("_ListData", model));
 }