public async Task <IActionResult> Create([Bind("PatientFirstName,PatientLastName,PatientBirthDate")] Patient patient) { if (ModelState.IsValid) { Processing.AddPatient(patient.PatientFirstName, patient.PatientLastName, HttpContext.User.Identity.Name, patient.PatientBirthDate); patient.PatientEmail = HttpContext.User.Identity.Name; //await _context.SaveChangesAsync(); //await Processing.db.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(patient)); }