public EmployeeWraper(UserInfo userInfo) { Id = userInfo.ID; DisplayName = DisplayUserSettings.GetFullUserName(userInfo); if (!string.IsNullOrEmpty(userInfo.Title)) { Title = userInfo.Title; } AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64); }
protected EmployeeWraper(UserInfo userInfo) { this.userInfo = userInfo; Id = userInfo.ID; if (!string.IsNullOrEmpty(userInfo.Title)) { Title = userInfo.Title; } AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64); }
///<summary> ///</summary> ///<param name="userInfo"></param> protected EmployeeWraper(UserInfo userInfo) { _userInfo = userInfo; Id = userInfo.ID; Title = userInfo.Title; try { AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64); } catch { //Go to hell with these } }
///<summary> ///</summary> ///<param name="userInfo"></param> protected EmployeeWraper(UserInfo userInfo) { _userInfo = userInfo; Id = userInfo.ID; if (!string.IsNullOrEmpty(userInfo.Title)) { Title = userInfo.Title; } try { AvatarSmall = UserPhotoManager.GetSizedPhotoUrl(userInfo.ID, 64, 64); } catch { //Go to hell with these } }