Ejemplo n.º 1
0
        public JsonResponse SendSummaryReportMethod()
        {
            SummaryReportDto summary_data = new SummaryReportDto();

            summary_data.total_admins = _adminQueries.GetAdminCount();
            summary_data.total_sites  = _siteQueries.GetSiteCount();
            summary_data.total_new_admins_this_month = _adminQueries.GetNewAdminsThisMonth();
            summary_data.total_new_sites_this_month  = _siteQueries.GetNewSitesThisMonth();
            summary_data.total_storage_megabytes     = _adminQueries.GetTotalMegabytesFromAllDataPlans();
            _mailer.SendSummaryReportEmail(summary_data);
            return(new JsonSuccess("Summary report sent."));
        }