public string GetNameByUserInfoID(int UserInfoID) { string Name = ""; BLL.UserInfo BUserInfo = new BLL.UserInfo(); Model.UserInfo MUserInfo = new Model.UserInfo(); MUserInfo = BUserInfo.GetModel(UserInfoID); if (MUserInfo != null) { Name = MUserInfo.TrueName; } return(Name); }