public void Delete(int id) { var appointment = FindById(id); _context.Appointments.Remove(appointment); _context.SaveChanges(); }