public ActionResult KullaniciGiris(Customers model)
        {
            try
            {
                Customers musteri = null;
                using (var musteriBusiness = new CustomersBusiness())
                {
                    musteri = musteriBusiness.CustomerLogin(model.KullaniciAdi, model.Sifre);
                }
                if (musteri != null)
                {
                    Session.Add("Musteri", musteri);
                }
                List <Arac> arac = null;
                using (var aracBusiness = new AracBusiness())
                {
                    arac = aracBusiness.SelectAllMusaitArac();
                    Session.Add("Arac", arac);
                }

                return(RedirectToAction("KullaniciSayfasi", "Kullanici"));
            }
            catch (Exception)
            {
                return(View("KullaniciGiris"));
            }
        }
 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"));
 }