Ejemplo n.º 1
0
 public bool UpdateEntity(Model.Models.TCustomer entity)
 {
     context.Entry(entity).State = EntityState.Modified;
     return(context.SaveChanges() > 0 ? true : false);
 }
Ejemplo n.º 2
0
 public Model.Models.TCustomer AddEntity(Model.Models.TCustomer entity)
 {
     return(context.TCustomers.Add(entity));
 }