public bool deleteStaff(string loginName) { try { DB.deleteStaff(loginName); } catch (Exception) { return(false); } return(true); }
public bool deleteStaff(string loginName) { if (level != Level.manager) { return(false); } try { DB.deleteStaff(loginName); } catch (Exception) { return(false); } return(true); }