Exemplo n.º 1
0
        public IActionResult Index()
        {
            var calisanSayisi   = _calisanRepository.GetAll().Select(i => i.CalisanId);
            var departmanSayisi = _departmanRepository.GetAll().Select(i => i.DepartmanId);

            ViewBag.calisanSayisi   = calisanSayisi.Count();
            ViewBag.departmanSayisi = departmanSayisi.Count();

            return(View());
        }
Exemplo n.º 2
0
 public IActionResult Index()
 {
     return(View(_calisanRepository.GetAll()));
 }
Exemplo n.º 3
0
 public IActionResult Index()
 {
     return(View(_calisanRepository.GetAll().Include(i => i.Departman)));
 }