public async Task <IActionResult> ConfirmAppointment() { var response = await _appointmentRepository.ConfirmAppointmentAsync(this.User.Identity.Name); if (response) { return(this.RedirectToAction("Index")); } return(this.RedirectToAction("Create")); }