public bool Delete(Employee employee) { if (employee.Id < 0) { return(false); } SQLConnectionHandler.GetInstance() .Execute(SQLCommand.DeleteEmployee(employee), true); return(true); }
public List <Employee> GetDelete(int Id) { command.DeleteEmployee(Id); return(command.ViewList()); }