public async Task <IActionResult> Create(PatientViewModel model) { if (ModelState.IsValid) { model.PatientAdmin = CurrentUserId.ToString(); var createUser = await _patientService.CreateUser(model); if (createUser) { return(RedirectToAction("Index")); } } return(View()); }