コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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);
         }
     }
 }