SigTrade.Models.PhaseRepository.getAll C# (CSharp) Method

getAll() public method

public getAll ( ) : IList
return IList
        public IList<Phase> getAll()
        {
            return DB.Select().From<Phase>().Where("Deleted").IsNotEqualTo(true).ExecuteTypedList<Phase>();
        }

Usage Example

Esempio n. 1
0
        public ActionResult index()
        {
            PhaseRepository phase_rep = new PhaseRepository();

            ViewData["all_phases"] = phase_rep.getAll();
            return View();
        }