public async Task <IActionResult> DeleteContest(int id) { try { await _contestService.DeleteContest(id); return(Ok()); } catch (NotFoundException) { return(NotFound("Конкурс не найден")); } }
public async Task <IActionResult> DeleteContest(int id) { try { await _contestService.DeleteContest(id); return(Ok()); } catch (NotFoundException) { return(NotFound("Конкурс не найден")); } }