Beispiel #1
0
        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));
        }
Beispiel #2
0
 public ProductoCtrl GetCtrlProducto()
 {
     return(ProductoCtrl.GetInstancia());
 }
Beispiel #3
0
 public List<Producto> GetAllSinUri()
 {
     ProductoCtrl ctrl = new ProductoCtrl();
     return ctrl.GetAll().ToList();
 }