public static bool UpdateKullanicilar(Kullanicilar kk) { using (hesapEntities he = new hesapEntities()) { he.Entry(kk).State = EntityState.Modified; if (he.SaveChanges() > 0) { return(true); } else { return(false); } } }
public static bool UpdateUrun(UrunlerModel um) { var urun = ConvertToUrunler(um); using (hesapEntities he = new hesapEntities()) { he.Entry(urun).State = EntityState.Modified; if (he.SaveChanges() > 0) { return(true); } else { return(false); } } }
public static bool UpdateMusteri(MusterilerModel mm) { var musteri = ConvertToMusteriler(mm); using (hesapEntities he = new hesapEntities()) { he.Entry(musteri).State = EntityState.Modified; if (he.SaveChanges() > 0) { return(true); } else { return(false); } } }
public static bool UpdateKategori(KategorilerModel km) { var k = ConvertToKategoriler(km); using (hesapEntities he = new hesapEntities()) { he.Entry(k).State = EntityState.Modified; if (he.SaveChanges() > 0) { return(true); } else { return(false); } } }