public Staffs GetEncryptedKey(string username) { try { StaffRepository repo = new StaffRepository(); return(repo.GetEncryptedKey(username)); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic::StaffBusiness::GetEncKey::Error occured.", ex); } }