public ActionResult Index() { try { TipServiceChargeViewModels model = new TipServiceChargeViewModels(); return(View(model)); } catch (Exception ex) { _logger.Error("TipServiceCharge_Index: " + ex); return(new HttpStatusCodeResult(400, ex.Message)); } }
public ActionResult Search(TipServiceChargeViewModels model) { try { var datas = _factory.GetListTipServiceCharge(model.StoreID); model.ListItem = datas; } catch (Exception ex) { _logger.Error("TipServiceCharge_Search: " + ex); return(new HttpStatusCodeResult(400, ex.Message)); } return(PartialView("_ListData", model)); }