コード例 #1
0
        public async Task <IActionResult> DeleteContest(int id)
        {
            try
            {
                await _contestService.DeleteContest(id);

                return(Ok());
            }
            catch (NotFoundException)
            {
                return(NotFound("Конкурс не найден"));
            }
        }