public ActionResult KullaniciSayfasi(string aracId, string musteriId) { try { bool success; using (var aracBusiness = new AracBusiness()) { success = aracBusiness.AracRezervasyonu(int.Parse(aracId)); } var message = success ? "done" : "failed"; Console.WriteLine("Operation " + message); List <Arac> arac = null; using (var aracBusiness = new AracBusiness()) { arac = aracBusiness.SelectAllMusaitArac(); Session.Add("Arac", arac); } } catch (Exception ex) { Console.WriteLine("Error happened: " + ex.Message); } return(RedirectToAction("KullaniciSayfasi", "Kullanici")); }