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