public ActionResult ObterTodos() { _repTime = new Rep.TimeRepositorio(); ModelState.Clear(); return(View(_repTime.ObterTimes())); }
public ActionResult EditarTime(int id) { _repTime = new Rep.TimeRepositorio(); return(View(_repTime.ObterTimes().Find(t => t.id == id))); }