public ActionResult ClientEdit(ClientConfigAdminViewModel model)
        {
            if (ModelState.IsValid)
            {
                Client client = CurrentClientOrThrow;
                client.EnableNewUserRegisteredBroadcast = model.EnableNewUserRegisteredBroadcast;
                client.EnablePageViewLog = model.EnablePageViewLog;
                client.Name = model.Name;
                client.TimeZoneId = model.TimeZoneId;
                client.SendGridMailAccount = model.SendGridMailAccount;
                client.SendGridMailFromEmail = model.SendGridMailFromEmail;
                client.SendGridMailFromName = model.SendGridMailFromName;
                client.SendGridMailPassword = model.SendGridMailPassword;
                client.TwilioFromPhone = model.TwilioFromPhone;
                client.TwilioSid = model.TwilioSid;
                client.TwilioSmsFromEmail = model.TwilioSmsFromEmail;
                client.TwilioSmsFromName = model.TwilioSmsFromName;
                client.TwilioToken = model.TwilioToken;
                client.UseSendGridEmail = model.UseSendGridEmail;
                client.UseTwilioSms = model.UseTwilioSms;
                GStoreDb.Clients.Update(client);
                GStoreDb.SaveChanges();
                client.CreateClientFolders(Request.ApplicationPath, Server);
                return RedirectToAction("ClientView", new { Tab = model.ActiveTab });
            }

            return View("ClientEdit", model);
        }
 public ActionResult ClientViewNoTabs()
 {
     ClientConfigAdminViewModel viewModel = new ClientConfigAdminViewModel(CurrentClientOrThrow, CurrentStoreFrontConfigOrThrow, CurrentUserProfileOrThrow, null);
     return View("ClientViewNoTabs", viewModel);
 }
 public ActionResult ClientView(string Tab)
 {
     ClientConfigAdminViewModel viewModel = new ClientConfigAdminViewModel(CurrentClientOrThrow, CurrentStoreFrontConfigOrThrow, CurrentUserProfileOrThrow, Tab);
     return View("ClientView", viewModel);
 }