public bool AracKirala(kiralikAraclar arac)
 {
     try
     {
         using (var araclar = new AraclarRepository())
         {
             araclar.AracKirala(arac);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 2
0
        public IHttpActionResult AracKirala(kiralikAraclar arac)
        {
            var content = new ResponseContent <kiralikAraclar>(null);

            if (arac != null)
            {
                using (var ar = new AraclarRepository())
                {
                    content.Result = ar.AracKirala(arac) ? "1" : "0";

                    return(new StandartResult <kiralikAraclar>(content, Request));
                }
            }

            content.Result = "0";

            return(new StandartResult <kiralikAraclar>(content, Request));
        }