public IHttpActionResult ContestantDelete(int contest_id) { if (!user_service.IsAuthorizedToDeleteContest(contest_id)) { return(Unauthorized()); } try{ contest_repository.DeleteContest(contest_id); return(Ok()); } catch (ObjectNotFoundException e) { return(NotFound()); } }