Beispiel #1
0
        public IActionResult Create(Guid patientId)
        {
            var patient = _hospital.GetPatient(patientId);

            var billViewModel = new BillViewModel()
            {
                PatientId = patientId,
                BillId    = Guid.NewGuid(),
                FirstName = patient.FirstName,
                LastName  = patient.LastName,
                TotalBill = patient.CalculateCharges
            };

            return(View(billViewModel));
        }
Beispiel #2
0
        public IActionResult Details(Guid patientId)
        {
            var patient = _hospital.GetPatient(patientId);

            return(View(patient));
        }