// GET: SLocation public ActionResult Index() { try { GeneralSettingViewModels model = new GeneralSettingViewModels(); model.StoreID = CurrentUser.StoreId; return(View(model)); } catch (Exception ex) { _logger.Error("Location_Index: " + ex); return(new HttpStatusCodeResult(400, ex.Message)); } }
public ActionResult Search(GeneralSettingViewModels model) { try { var listStore = ViewBag.ListStore; foreach (var item in listStore) { model.ListItem.Add(new StoreModels { Name = item.Text, Id = item.Value }); } } catch (Exception ex) { _logger.Error("GeneralSetting_Search : " + ex); return(new HttpStatusCodeResult(400, ex.Message)); } return(PartialView("_ListData", model)); }