Ejemplo n.º 1
0
        public async Task <ActionResult <VmArea> > GetAreaReport(Guid id, CancellationToken cancellationToken)
        {
            var areaReport = await _reportsService.GetAreaReport(id, cancellationToken);

            if (areaReport == null)
            {
                return(NotFound());
            }

            var vmReport = _mapper.Map <VmAreaReport>(areaReport);

            return(Ok(vmReport));
        }