// // GET: /Project/ public ActionResult Index(int id) { Project p = CurrentUserModel.GetProject(id); if (p == null) { throw new Exception("Project not found"); } return(View(p)); }
public ActionResult Edit(Project project) { try { Project p = CurrentUserModel.GetProject(project.Id); p.Name = project.Name; p.Description = project.Description; CurrentUserModel.UpdateProject(p); return(RedirectToAction("Index", new { id = project.Id })); } catch (Exception ex) { return(Content(ex.ToString())); } }
public ActionResult Edit(int id) { CurrentUserModel.ValidateProject(id); ViewData["Creating"] = false; return(View("Create", CurrentUserModel.GetProject(id))); }
public ActionResult ConfirmDelete(int id) { Project p = CurrentUserModel.GetProject(id); return(View(p)); }
public ActionResult UploadRelease(int projectId) { Project p = CurrentUserModel.GetProject(projectId); return(View(p)); }