private void modify_Click(object sender, RoutedEventArgs e) { BoreholeServer server = new BoreholeServer(new BoreholeRepositoryForServer(new GeologyDbContext())); Borehole obj = new Borehole() { ID = int.Parse(a.Text), Name = b.Text, Top = int.Parse(c.Text), }; output.Text += server.ModifyBorehole(obj) + "\r\n"; }
private void detele_Click(object sender, RoutedEventArgs e) { BoreholeServer server = new BoreholeServer(new BoreholeRepositoryForServer(new GeologyDbContext())); output.Text += server.DeteleBorehole(int.Parse(a.Text)) + "\r\n"; }