public Producto GetProductoById(string id, string nombre) { if (string.IsNullOrEmpty(id)) return null; ProductoCtrl ctrl = new ProductoCtrl(); return ctrl.GetAll().ToList().First(x => x.ProductoId == Convert.ToInt32(id)); }
public List<Producto> GetAllSinUri() { ProductoCtrl ctrl = new ProductoCtrl(); return ctrl.GetAll().ToList(); }