Ejemplo n.º 1
0
        public async Task <ActionResult <CompanyStatisticsDataset> > GetStatistics()
        {
            int id = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier));
            CompanyStatisticsDataset result = await _employerService.GetStatistics(id);

            if (result != null)
            {
                return(Ok(result));
            }
            return(NotFound());
        }