public static bool DurumDegistir(MusteriModel mm) { using (SuDBEntities s = new SuDBEntities()) { siparisler sip = ConvertToSiparis(mm); s.Entry(sip).State = EntityState.Modified; if (s.SaveChanges() > 0) { return(true); } else { return(false); } } }
public static bool UpdateMusteri(MusteriModel mm) { using (SuDBEntities s = new SuDBEntities()) { musteriler m = ConvertMusteri(mm); s.Entry(m).State = EntityState.Modified; if (s.SaveChanges() > 0) { return(true); } else { return(false); } } }