Example #1
0
        public async Task <Footballer> deleteByFootballerId(Guid footballerId)
        {
            var footballer = await footballerRepository.getFootballerById(footballerId);

            await footballerRepository.deleteFootballer(footballer);

            return(footballer);
        }
        public async Task <IActionResult> getFootballerById(Guid id)
        {
            var footballer = await footballerRepository.getFootballerById(id);

            return(Ok(footballer));
        }