// GET: SBInventoryDiscount public ActionResult Index() { try { DiscountViewModels model = new DiscountViewModels(); return(View(model)); } catch (Exception ex) { NSLog.Logger.Error("DiscountIndex: ", ex); return(new HttpStatusCodeResult(400, ex.Message)); } }
public ActionResult Index() { try { DiscountViewModels model = new DiscountViewModels(); model.StoreID = CurrentUser.StoreId; return(View(model)); } catch (Exception ex) { _logger.Error("Discount_Index: " + ex); return(new HttpStatusCodeResult(400, ex.Message)); } }
public ActionResult Search(DiscountViewModels model) { try { var listData = _factory.GetListData(model.SearchString); model.ListItem = listData; } catch (Exception e) { NSLog.Logger.Error("DiscountSearch: ", e); return(new HttpStatusCodeResult(400, e.Message)); } return(PartialView("_ListData", model)); }
public ActionResult Search(DiscountViewModels model) { try { var datas = _factory.GetListDiscount(model.StoreID, null, CurrentUser.ListOrganizationId); foreach (var item in datas) { item.BType = item.Type == (byte)Commons.EValueType.Currency ? true : false; } model.ListItem = datas; } catch (Exception e) { _logger.Error("Discount_Search: " + e); return(new HttpStatusCodeResult(400, e.Message)); } return(PartialView("_ListData", model)); }