public string GetUserEmail(string userID) { var creator = new SqlScriptCreator("hrcommon.dbo.enterpriseusers", new[] { string.Format("guid = '{0}'", userID) }, "guid, userName, Email"); var user = ReadSingleRecord(creator.GetSqlScript(), new UserCreator()); return user.Email; }
public EnterpriseUser GetEnterpriseUser(string userID) { var creator = new SqlScriptCreator("hrcommon.dbo.enterpriseusers", new[] { string.Format("guid = '{0}'", userID) }); return ReadSingleRecord(creator.GetSqlScript(), new EnterpriseUserCreator()); }