예제 #1
0
        public async Task <IActionResult> GetPointByIdAsync(Guid id)
        {
            var roundPoint = await _roundPointService.GetByIdAsync(id);

            if (roundPoint != null)
            {
                return(Ok(RoundPointAdapter.ToRoundPointDTO(roundPoint)));
            }

            return(NoContent());
        }
예제 #2
0
        public async Task <IActionResult> GetPointAsync()
        {
            var roundsPoints = await _roundPointService.GetAllAsync();

            if (roundsPoints.Any())
            {
                return(Ok(roundsPoints.Select(x => RoundPointAdapter.ToRoundPointDTO(x))));
            }

            return(NoContent());
        }