public ActionResult IndexPost() { List <Options> optionsList = new List <Options>(); foreach (var item in _optionsService.GetOptions()) { var option = _optionsService.GetByName(item.Name); if (Request.Form[item.Name.ToString()] != option.Value) { option.Value = Request.Form[item.Name.ToString()]; _optionsService.Edit(option); } } return(RedirectToAction("Index", new { Controller = "Default" })); }