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