public ActionResult Edit(Project project) { Repository.Update(project); return RedirectToAction("Index"); }
public ActionResult Delete(Project project) { Repository.Delete(project); return RedirectToAction("Index"); }
public ActionResult Create(Project project) { Repository.Add(project); return RedirectToAction("Index"); }
public void Delete(Project project) { _projects.Remove(GetProject(project.Id)); }
public void Add(Project project) { _projects.Add(project); }
public void Update(Project project) { var projectToSave = GetProject(project.Id); projectToSave.Number = project.Number; projectToSave.Name = project.Name; }