public IHttpActionResult GetSharePointActivityCount(int companyId, int ReportPeriod) { var count = _metricsService.GetSharePointActivity(companyId, ReportPeriod); var details = _metricsService.GetSharePointActivityDetails(companyId, ReportPeriod, null); var result = new { count, details }; if (result == null) { return(NotFound()); } return(Ok(result)); }