public ActionResult DeleteConfirmed(int id) { Sepet sepet = SepetManager.GetById(id); SepetManager.Delete(sepet); return(RedirectToAction("Index")); }
public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Sepet sepet = SepetManager.GetById((int)id); if (sepet == null) { return(HttpNotFound()); } return(View(sepet)); }