public async Task <IActionResult> GetPointByIdAsync(Guid id) { var roundPoint = await _roundPointService.GetByIdAsync(id); if (roundPoint != null) { return(Ok(RoundPointAdapter.ToRoundPointDTO(roundPoint))); } return(NoContent()); }
public async Task <IActionResult> GetPointAsync() { var roundsPoints = await _roundPointService.GetAllAsync(); if (roundsPoints.Any()) { return(Ok(roundsPoints.Select(x => RoundPointAdapter.ToRoundPointDTO(x)))); } return(NoContent()); }