public IActionResult CancelAppointment(int id) { return(new ObjectResult(_repository.CancelAppointment(id))); }