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