Пример #1
0
        public JsonResult GetSummaryReportInfo()
        {
            var allPersons = _personRepo.GetAll();
            var allQuerys  = _queryRepo.GetAll();

            var res = new ReportHelper().GetSummaryReport(allQuerys, allPersons);

            return(Json(res, JsonRequestBehavior.AllowGet));
        }
Пример #2
0
        public ActionResult Index(int id)
        {
            var person = _repo.GetAll().First(p => p.PersonId == id);

            return(View(person));
        }
Пример #3
0
 IEnumerable <Person> IPersonManager.GetItems()
 {
     return(_personRepo.GetAll());
 }
Пример #4
0
 public ActionResult <IEnumerable <ViewPersonDto> > GetAll()
 {
     return(repo.GetAll().ToList());
 }
 // GET: PeopleRepo
 public IActionResult Index()
 {
     var people = from entity in _personRepo.GetAll()
                  select entity;
     return View(people);
 }
Пример #6
0
        public List <Person> GetAll()
        {
            var person = _repo.GetAll();

            return(person);
        }