public IActionResult List() { ViewData["Section"] = "Dentistas"; ViewData["Action"] = "Listar"; var dentistList = DentistsDAO.GetAll(Convert.ToInt32(HttpContext.Session.GetInt32("clinicId"))); return(View(dentistList)); }
public IActionResult AddProcedure(int id) { var patient = PatientsDAO.GetById(id); if (patient == null) { return(RedirectToAction("Index", "Dashboard")); } var procedure = new PatientRecordProcedure(); procedure.PatientRecordID = id; ViewData["Section"] = "Pacientes"; ViewData["Action"] = "Criar Novo Procedimento"; ViewBag.Procedures = ProceduresDAO.GetAll(Convert.ToInt32(HttpContext.Session.GetInt32("clinicId"))); ViewBag.Dentists = DentistsDAO.GetAll(Convert.ToInt32(HttpContext.Session.GetInt32("clinicId"))); ViewBag.PatientName = patient.Name; return(View(procedure)); }