public bool AracUpdate(araclar item)
 {
     try
     {
         using (var araclar = new AraclarRepository())
         {
             araclar.AracUpdate(item);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 2
0
        public IHttpActionResult UpdateArac(int id, araclar arac)
        {
            var content = new ResponseContent <araclar>(null);

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

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

            content.Result = "0";

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