Ejemplo n.º 1
0
        public IHttpActionResult KullaniciDelete(int id)
        {
            var content = new ResponseContent <kullanicilar>(null);

            using (var kr = new KullanicilarRepository())
            {
                content.Result = kr.KullaniciDelete(id) ? "1" : "0";

                return(new StandartResult <kullanicilar>(content, Request));
            }
        }
 public bool KullaniciDelete(int id)
 {
     try
     {
         using (var kullanici = new KullanicilarRepository())
         {
             kullanici.KullaniciDelete(id);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }