private void DeleteEmployee()
 {
     if (SelectedEmployee != null)
     {
         context.DeleteEmployee(SelectedEmployee);
         Employees.Remove(SelectedEmployee);
         SelectedEmployee = null;
     }
 }
Esempio n. 2
0
 public void DeleteEmployee(int id)
 {
     _context.DeleteEmployee(id);
 }