[Route("api/allAds/{id}")] // view all accepted ad by id public IHttpActionResult GetbyIdAds(int id) { return(Ok(adRepo.GetbyAd(id).ToList())); }