Esempio n. 1
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));
 }
Esempio n. 2
0
 // GET: TaxesPurchasing
 public ActionResult Index()
 {
     try
     {
         TaxPurchasingViewModels model = new TaxPurchasingViewModels();
         model.StoreID = CurrentUser.StoreId;
         return(View(model));
     }
     catch (Exception ex)
     {
         _logger.Error("TaxPurchasing_Index: " + ex);
         return(new HttpStatusCodeResult(400, ex.Message));
     }
 }