public long Count(object siteId, string view = null)
            {
                var ss = SiteSettingsUtilities.Get(
                    context: Context,
                    siteId: siteId.ToLong());

                return(ServerScriptUtilities.Aggregate(
                           context: Context,
                           ss: ss,
                           view: view));
            }
            private decimal CreateAggregate(object siteId, string columnName, string view, Sqls.Functions function)
            {
                var ss = SiteSettingsUtilities.Get(
                    context: Context,
                    siteId: siteId.ToLong());

                return(ServerScriptUtilities.Aggregate(
                           context: Context,
                           ss: ss,
                           view: view,
                           columnName: columnName,
                           function: function));
            }