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)); }
// 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)); } }