コード例 #1
0
        public IHttpActionResult AracDelete(int id)
        {
            var content = new ResponseContent <araclar>(null);

            using (var ar = new AraclarRepository())
            {
                content.Result = ar.AracDelete(id) ? "1" : "0";

                return(new StandartResult <araclar>(content, Request));
            }
        }
コード例 #2
0
 public bool AracDelete(int id)
 {
     try
     {
         using (var araclar = new AraclarRepository())
         {
             araclar.AracDelete(id);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }