Exemplo n.º 1
0
        public ActionResult <bool> DeleteAppointment(int id)
        {
            var appointment = _appointmentService.GetById(id).Result;

            if (appointment == null)
            {
                return(false);
            }
            var result = _appointmentService.Delete(appointment).Result;

            return(Ok(result));
        }