public ActionResult UpdateRelease(AppRelease release) { AppRelease rp = CurrentUserModel.GetAppRelease(release.Id); rp.AppVersion = release.AppVersion; rp.AddinRootVersion = release.AddinRootVersion; rp.CompatibleAppReleaseId = release.CompatibleAppReleaseId; if (release.ZipUrl != null) { CurrentUserModel.UpdateAppReleaseFileFromUrl(rp, release.ZipUrl); } else { CurrentUserModel.UpdateAppRelease(rp, Request.Files.Count > 0 ? Request.Files[0] : null); } return(RedirectToAction("Index", "Admin")); }
// // GET: /AppRelease/Edit/5 public ActionResult Edit(int id) { ViewData["Creating"] = false; return(View(CurrentUserModel.GetAppRelease(id))); }