Ejemplo n.º 1
0
 protected override void DeleteRecord()
 {
     base.DeleteRecord();
     var id = Convert.ToInt32(recordId.Text);
     using (var facade = new EmployeeCore())
     {
         facade.Delete(id);
         ShowMessage(facade);
     }
 }
Ejemplo n.º 2
0
        protected override void DeleteRecord()
        {
            base.DeleteRecord();
            var id = Convert.ToInt32(recordId.Text);

            using (var facade = new EmployeeCore())
            {
                facade.Delete(id);
                ShowMessage(facade);
            }
        }