示例#1
0
        public async Task <IActionResult> Get(int id)
        {
            var SportDto = await _sportService.Get(id);

            return(Ok(new { Success = true, Sport = SportDto }));
        }
        public IActionResult Get()
        {
            var result = _sportService.Get();

            return(Ok(result));
        }