public ActionResult DeleteRelease(int releaseId) { Release r = CurrentUserModel.GetRelease(releaseId); CurrentUserModel.DeleteRelease(r); return(RedirectToAction("Index", new { id = r.ProjectId })); }