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