public async TaskDetails(int? id) var doctor = await context.Doctor.Include ).Theninclude ).FirstOrDefaultAsync( doctor.Visits = doctor.Visits.Where ).ToList0: return View v => v.Patient.Type eType.InPatient d => d.Visits %3%3D doctor d => d.DoctorID == V => v.Patient

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
****/
new Doctor { DoctorID = 1, Name = "Kareem", Email "Kareem@gmail.com", Fees = 25 };
new Doctor { DoctorID = 2, Name = "Abdulrahman", Email = "Abood@gmail.com", Fees = 30
%3D
!!
%3D
new Doctor { DoctorID = 3, Name = "Joud", Email = "Joud@gmail.com", Fees = 20};
%3D
!3D
%3D
*******
***********/
new Patient { PatientID = 1, Name "Omar", Type = eType.lnPatient);
new Patient { PatientID = 2, Name "Ahmad", Type = eType.OutPatient };
new Patient { PatientID = 3, Name = "Mohammad", Type = eType.InPatient );
/*********
!3!
!!
!!
!!
***********/
new Visit { VisitID = 1, DoctorID = 1, PatientID = 1 };
new Visit { VisitID = 2, DoctorID = 2, PatientID = 2);
new Visit { VisitID = 3, DoctorID = 3, PatientID = 3 };
!!
!3!
%3D
%3D
!!
%3D
%3!
/***********
大**★ /
Fill in the blanks below the required code in the "Details" action method of
DoctorsController, which returns the data of a selected doctor with the data
of all patients who visited that doctor and their Type equals InPatient?
Transcribed Image Text:****/ new Doctor { DoctorID = 1, Name = "Kareem", Email "Kareem@gmail.com", Fees = 25 }; new Doctor { DoctorID = 2, Name = "Abdulrahman", Email = "Abood@gmail.com", Fees = 30 %3D !! %3D new Doctor { DoctorID = 3, Name = "Joud", Email = "Joud@gmail.com", Fees = 20}; %3D !3D %3D ******* ***********/ new Patient { PatientID = 1, Name "Omar", Type = eType.lnPatient); new Patient { PatientID = 2, Name "Ahmad", Type = eType.OutPatient }; new Patient { PatientID = 3, Name = "Mohammad", Type = eType.InPatient ); /********* !3! !! !! !! ***********/ new Visit { VisitID = 1, DoctorID = 1, PatientID = 1 }; new Visit { VisitID = 2, DoctorID = 2, PatientID = 2); new Visit { VisitID = 3, DoctorID = 3, PatientID = 3 }; !! !3! %3D %3D !! %3D %3! /*********** 大**★ / Fill in the blanks below the required code in the "Details" action method of DoctorsController, which returns the data of a selected doctor with the data of all patients who visited that doctor and their Type equals InPatient?
public async Task<IActionResult>Details(int? id)
{
var doctor = await context.Doctor.Include
).Theninclude(
).FirstOrDefaultAsync(
doctor.Visits = doctor.Visits.Where(
).TOList0;
return View
V => v.Patient.Type
eType.InPatient
d => d.Visits
d => d.DoctorlD == id
%3D3D
doctor
V => v.Patient
Transcribed Image Text:public async Task<IActionResult>Details(int? id) { var doctor = await context.Doctor.Include ).Theninclude( ).FirstOrDefaultAsync( doctor.Visits = doctor.Visits.Where( ).TOList0; return View V => v.Patient.Type eType.InPatient d => d.Visits d => d.DoctorlD == id %3D3D doctor V => v.Patient
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY