public ActionResult Detay(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } var urun = _urunRepository.GetDiscountPrice(id.Value); if (urun == null) { return(new HttpStatusCodeResult(HttpStatusCode.NotFound)); } if (!_urunRepository.IsAvailable(urun)) { return(new HttpStatusCodeResult(HttpStatusCode.NotFound)); } return(View(urun)); }