Beispiel #1
0
 public bool Update(Slide slide)
 {
     try
     {
         db.Set <Slide>().AddOrUpdate(slide);
         db.SaveChanges();
         return(true);
     }
     catch { return(false); }
 }
Beispiel #2
0
 public bool Update(Product product)
 {
     try
     {
         db.Set <Product>().AddOrUpdate(product);
         db.SaveChanges();
         return(true);
     }
     catch { return(false); }
 }
 public bool Update(Map map)
 {
     try
     {
         db.Set <Map>().AddOrUpdate(map);
         db.SaveChanges();
         return(true);
     }
     catch { return(false); }
 }
Beispiel #4
0
 public bool Update(Menu menu)
 {
     try
     {
         db.Set <Menu>().AddOrUpdate(menu);
         db.SaveChanges();
         return(true);
     }
     catch { return(false); }
 }