public ActionResult Access() { AccessViewModel model = new AccessViewModel(); model.MaxFolderKeyLength = ConfigReader.GetFolderKeyLength(); return View(model); }
public ActionResult Access(AccessViewModel model) { FolderContract folder = FolderBO.GetFolder(model.FolderKey); if (folder == null) return HttpNotFound(); return Content(Url.Action("DownloadFolder", new { key = model.FolderKey })); }