public static void ObrisiUplatu() { Console.WriteLine("Upisite id uplate koju zelite da izmenite: "); int id = Convert.ToInt32(Console.ReadLine()); UplataDAO.Delete(Program.conn, id); }
private void btnIzbrisi_Click(object sender, RoutedEventArgs e) { Uplata u = dgUplata.SelectedItem as Uplata; u.Kurs.Uplate.Remove(u); u.Ucenik.Uplate.Remove(u); Aplikacija.Instanca.Uplate.Remove(u); UplataDAO.Delete(u); }