Beispiel #1
0
 public bool UpdateGoodsGroup(GoodsGroup goodsGroup)
 {
     try
     {
         db.Entry(goodsGroup).State = EntityState.Modified;
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Beispiel #2
0
 public bool InsertGoodsGroup(GoodsGroup goodsGroup)
 {
     try
     {
         db.GoodsGroups.Add(goodsGroup);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }