Exemple #1
0
        public ActionResult Index()
        {
            List <UserDetail> Kullanicilar = _userDetailService.GetDefault(x => x.Role == Role.Member && x.Durumu == NTier.Core.Entity.Enum.Status.Active);

            ViewBag.Users = Kullanicilar.Count;

            List <Rent> Kiralamalar = _rentService.GetDefault(x => x.Billed == true && x.Durumu == NTier.Core.Entity.Enum.Status.Active);

            ViewBag.Kiralama = Kiralamalar.Count;

            List <Car> araclar = _carService.GetAll();

            ViewBag.Araclar = araclar.Count();


            return(View());
        }