public IList<Phase> getAll() { return DB.Select().From<Phase>().Where("Deleted").IsNotEqualTo(true).ExecuteTypedList<Phase>(); }
public ActionResult index() { PhaseRepository phase_rep = new PhaseRepository(); ViewData["all_phases"] = phase_rep.getAll(); return View(); }