public ActionResult Edit(int id, FormCollection collection) { try { // TODO: Add update logic here var model = ProjectParticipants.GetById(id); TryUpdateModel(model); model.SaveOrUpDate(); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(FormCollection collection) { try { // TODO: Add insert logic here var model = new ProjectParticipants(); TryUpdateModel(model); model.Insert(); return(RedirectToAction("Index")); } catch { return(View()); } }
// GET: ProjectParticipants/Edit/5 public ActionResult Edit(int id) { return(View(ProjectParticipants.GetById(id))); }
// GET: ProjectParticipants public ActionResult Index() { return(View(ProjectParticipants.GetAll())); }