public async Task <Point> GetByIdAsync(int id)
        {
            var points = await _pointService.GetByIdAsync(id);

            //var resources = _mapper.Map<IEnumerable<Point>, IEnumerable<PointResource>> (points);

            return(points);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetById(int id)
        {
            var point = await _pointService.GetByIdAsync(id);

            return(OkOptionalContent(point));
        }