Пример #1
0
        public async Task <IActionResult> Get(int id)
        {
            var SportDto = await _sportService.Get(id);

            return(Ok(new { Success = true, Sport = SportDto }));
        }
Пример #2
0
        public IActionResult Get()
        {
            var result = _sportService.Get();

            return(Ok(result));
        }