public OfficerBE GetOfficer() { if (myOfficer == null) { myOfficer = new OfficerBE(this); } return(myOfficer); }
internal officeDB.OfficeRow GetOfficeForOfficer(string user) { OfficerBE off = GetOfficer(); myOfficerLoggedOnId = off.Load(user).OfficerId; if (CurrentOfficer == null) { throw new AtriumException(Resources.BadUserName); } myCurrentOfficeId = GetOffice(CurrentOfficer.OfficeId).OfficeId; if (CurrentOffice == null) { throw new AtriumException(Resources.NoOffice); } //is this needed it slows down the log in //off.Load(); return(CurrentOffice); }