public ActionResult StoreSettings(DisplayStoreModel store) { try { ViewBag.IsSuccessful = false; var sg = new StoreGateway(); ViewBag.IsSuccessful = sg.UpdateStoreSettings(store); return Redirect(Url.Content("~/store/settings/" + store.PrivateManagerId.ToString().Replace("-", "") + "/" + store.MerchantId.ToString().Replace("-", ""))); } catch (Exception exception) { ErrorDatabaseManager.AddException(exception, exception.GetType()); } return Redirect(Url.Content("~/?u=" + SiteMessagesEnum.sww)); }