public bool KullaniciUpdate(kullanicilar item)
 {
     try
     {
         using (var kullanici = new KullanicilarRepository())
         {
             kullanici.KullaniciUpdate(item);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
        public IHttpActionResult UpdateKullanici(int id, kullanicilar kul)
        {
            var content = new ResponseContent <kullanicilar>(null);

            if (kul != null)
            {
                using (var kr = new KullanicilarRepository())
                {
                    content.Result = kr.KullaniciUpdate(kul) ? "1" : "0";

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

            content.Result = "0";

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