public List <Productos> ObtenerTodos() { using (var db = new ColmadoContext()) { return(db.Producto.ToList()); } }
internal void crear(Productos model) { using (var db = new ColmadoContext()) { db.Producto.Add(model); db.SaveChanges(); } }
public List <Productos> ObtenerTodos() { using (var db = new ColmadoContext()) { return(db.Producto.ToList()); } }
internal void crear(Productos model) { using (var db = new ColmadoContext()) { db.Producto.Add(model); db.SaveChanges(); } }