// // POST: /Main/Data public ActionResult Data(Data model) { if (string.IsNullOrEmpty(model.ConfigStorageName)) { model.Errors.Add(Messages.MissingStorageName); } if (string.IsNullOrEmpty(model.ConfigStorageKey)) { model.Errors.Add(Messages.MissingStorageKey); } if (model.Errors.Count == 0 && !Azure.TestConnection(model.ConfigStorageName, model.ConfigStorageKey)) { model.Errors.Add(Messages.CannotConnect); } if (model.Errors.Count > 0) { return(View("Start", model)); } model.SortOrder = model.SortOrder ?? "asc"; model.SortParam = model.SortParam ?? "entityset"; ViewBag.NextSortOrder = (model.SortOrder == "asc" ? UI.Descending : UI.Ascending); return(View(model)); }