public ActionResult Index(AzureCredentialsModel model)
        {
            if (!ModelState.IsValid)
                return View(model);

            if (!AzureProvider.GetInstance(model.AccountName, model.AccountKey).AzureClientExists())
            {
                model.CustomErrorMessage = "Invalid credentials.";
                return View(model);
            }

            SetCredentialsCookie(model.AccountName, model.AccountKey);
            return RedirectToAction("Index", "Rules");
        }
 public ActionResult Index()
 {
     var model = new AzureCredentialsModel();
     return View(model);
 }