public IEnumerable <ServiceCall> All() { using (var context = _contextCreator()) { _repository = new ConnectedRepository <ServiceCall>(context); return(_repository.All()); } }
public IEnumerable <Customer> All() { using (var context = _contextCreator()) { _repository = new ConnectedRepository <Customer>(context); return(_repository.All()); } }
// TODO(crhodes) // Figure out how to pass this in. //public ChlorineLevelsController(ConnectedRepository<ChlorineLevel> repository) //{ // _repository = repository; //} // GET: ChlorineLevels public ActionResult Index() { return(View(_repository.All())); //return View(db.ChlorineLevelSet.ToList()); }