Exemplo n.º 1
0
        public int OlcuBirimiGuncelle(OlcuBirimleri tabloAdi)
        {
            db.Entry(tabloAdi).State = System.Data.Entity.EntityState.Modified;

            if (db.SaveChanges() > 0)
            {
                return(1);
            }
            return(0);
        }
Exemplo n.º 2
0
        //public int MarkaGuncelle(string Marka_Adi,int Personel_ID)
        //{
        //    return rep.Update()
        //}

        public int Guncelle(Markalar tabloGuncelle)
        {
            //Repository yapısı ile güncelleme olmuyor
            db.Entry(tabloGuncelle).State = System.Data.Entity.EntityState.Modified;
            if (db.SaveChanges() > 0)
            {
                return(1);
            }
            return(0);
            //rep.Save();
        }
Exemplo n.º 3
0
 public int Save()
 {
     return(db.SaveChanges());
 }