Exemple #1
0
        /// <summary>
        /// Updates the confirmed appointment and returns updated view
        /// </summary>
        /// <param name="id">Unique identifier of appointment to confirm appointment with</param>
        /// <returns>View</returns>
        public async Task <IActionResult> ConfirmAppt(int id)
        {
            //- ConfirmAppointment
            var isSuccess = await _appointmentDataAccess.SetConfirmAppointmentAsync(id);

            if (isSuccess == false)
            {
                return(NotFound());
            }


            return(RedirectToAction("Requested"));
        }