// GET: PatientsBill public ActionResult Index() { var model = new PatientBillDAL().GetAllRecords().ToList(); var Appointments = new PatientBillDAL().ListOfRecords().ToList(); ViewBag.appointment = Appointments; ViewData["GetPatients"] = model; return(View()); }
public ActionResult BillListings() { var model = new PatientBillDAL().GetPatientBills().ToList(); var Appointments = new PatientBillDAL().ListOfRecords().ToList(); var PatientsData = db.tblPatients.ToList(); ViewBag.patient = PatientsData; ViewBag.appointment = Appointments; return(View(model)); }