Example #1
0
 public bool UpdateEntity(Model.Models.TGood entity)
 {
     context.Entry(entity).State = EntityState.Modified;
     return(context.SaveChanges() > 0 ? true : false);
 }
Example #2
0
 public Model.Models.TGood AddEntity(Model.Models.TGood entity)
 {
     return(context.TGoods.Add(entity));
 }