예제 #1
0
        public IActionResult PdfResults(int id)
        {
            var results = ResultTable.GetDataByTestId(id);

            var docName = TestTable.GetDataById(results[0].TestId);
            var doc     = DoctorTable.GetDoctorIdByName(docName[0].DoctorName);
            var docData = DoctorTable.GetSpecializationById(doc[0].Id);

            docData[0].Name = docData[0].Name + " " + docData[0].Surname;
            ViewBag.doctor  = docData;

            var patData = PatientTable.GetPatientById(Properties.UserId);

            patData[0].Name = patData[0].Name + " " + patData[0].Surname;
            ViewBag.patient = patData;

            return(View(results));
        }