public IEnumerable <ServiceCall> All()
 {
     using (var context = _contextCreator())
     {
         _repository = new ConnectedRepository <ServiceCall>(context);
         return(_repository.All());
     }
 }
Пример #2
0
 public IEnumerable <Customer> All()
 {
     using (var context = _contextCreator())
     {
         _repository = new ConnectedRepository <Customer>(context);
         return(_repository.All());
     }
 }
Пример #3
0
        // 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());
        }