public async Task <IActionResult> IyilesenHasta(int aktifSayfa = 1)
        {
            var user = await _userManager.FindByNameAsync(User.Identity.Name);

            int toplamsayfa;

            var hastalar = _hastaService.GetirEkipIyilestirilenHastalar(out toplamsayfa, user.Id, aktifSayfa);

            ViewBag.ToplamSayfa = toplamsayfa;
            ViewBag.AktifSayfa  = aktifSayfa;

            List <HastaListAllViewModel> models = new List <HastaListAllViewModel>();

            foreach (var item in hastalar)
            {
                HastaListAllViewModel model = new HastaListAllViewModel();
                model.Id         = item.Id;
                model.Aciklama   = item.Aciklama;
                model.AppUser    = item.AppUser;
                model.Aciliyet   = item.Aciliyet;
                model.Raporlar   = item.Raporlar;
                model.KimlikNo   = item.KimlikNo;
                model.AdSoyad    = item.AdSoyad;
                model.Yas        = item.Yas;
                model.TestTarihi = item.TestTarihi;
                models.Add(model);
            }

            return(View(models));
        }
        public async Task <IActionResult> Index()
        {
            var user = await _userManager.FindByNameAsync(User.Identity.Name);

            var hastalar = _hastaService.GetirTumTablolarByFilter(x => x.AppUserId == user.Id && !x.Durum);

            List <HastaListAllViewModel> models = new List <HastaListAllViewModel>();

            foreach (var item in hastalar)
            {
                HastaListAllViewModel model = new HastaListAllViewModel();
                model.Id         = item.Id;
                model.AppUser    = item.AppUser;
                model.Aciliyet   = item.Aciliyet;
                model.Raporlar   = item.Raporlar;
                model.Aciklama   = item.Aciklama;
                model.AdSoyad    = item.AdSoyad;
                model.KimlikNo   = item.KimlikNo;
                model.Yas        = item.Yas;
                model.TestTarihi = item.TestTarihi;
                models.Add(model);
            }

            return(View(models));
        }
        public IActionResult IyilesenHastalar(int aktifSayfa = 1)
        {
            int toplamSayfa;

            var hastalar = _hastaService.GetirIyilestirilenHastalar(out toplamSayfa, aktifSayfa);

            ViewBag.ToplamSayfa = toplamSayfa;
            ViewBag.AktifSayfa  = aktifSayfa;

            List <HastaListAllViewModel> models = new List <HastaListAllViewModel>();

            foreach (var item in hastalar)
            {
                HastaListAllViewModel model = new HastaListAllViewModel();
                model.Id         = item.Id;
                model.AppUser    = item.AppUser;
                model.Aciliyet   = item.Aciliyet;
                model.Raporlar   = item.Raporlar;
                model.Aciklama   = item.Aciklama;
                model.AdSoyad    = item.AdSoyad;
                model.KimlikNo   = item.KimlikNo;
                model.Yas        = item.Yas;
                model.TestTarihi = item.TestTarihi;
                models.Add(model);
            }

            return(View(models));
        }
        public IActionResult Detay(int id)
        {
            var hasta = _hastaService.GetirRaporlarIleUserById(id);

            HastaListAllViewModel model = new HastaListAllViewModel();

            model.Id       = hasta.Id;
            model.Raporlar = hasta.Raporlar;
            model.AppUser  = hasta.AppUser;
            model.Aciliyet = hasta.Aciliyet;

            return(View(model));
        }
        public IActionResult Index()
        {
            TempData["active"] = "isemri";

            var hastalar = _hastaService.GetirTumTablolar();
            List <HastaListAllViewModel> models = new List <HastaListAllViewModel>();

            foreach (var item in hastalar)
            {
                HastaListAllViewModel model = new HastaListAllViewModel();
                model.Id         = item.Id;
                model.KimlikNo   = item.KimlikNo;
                model.AdSoyad    = item.AdSoyad;
                model.Yas        = item.Yas;
                model.TestTarihi = item.TestTarihi;
                model.Aciklama   = item.Aciklama;
                model.AppUser    = item.AppUser;
                model.Aciliyet   = item.Aciliyet;
                model.Raporlar   = item.Raporlar;
                models.Add(model);
            }

            return(View(models));
        }