public ActionResult Index() { AppWebHelper hlp = new AppWebHelper(HttpContext.Request.QueryString[Constants.SPAppWebUrl] as string); List <GlobalSetting> model = hlp.GetGlobalSettings(); return(View(model)); }
public ActionResult Edit(int id, FormCollection collection) { try { AppWebHelper hlp = new AppWebHelper( HttpContext.Request.QueryString[Constants.SPAppWebUrl] as string); hlp.UpdateGlobalSetting(id, collection["key"], collection["value"]); AutoTaggingHelper.GlobalConfigNeedsRefresh = true; return(View("Index", hlp.GetGlobalSettings())); } catch (Exception ex) { LogHelper.Log(ex.Message + ex.StackTrace, LogSeverity.Error); throw; } }