Пример #1
0
        public ActionResult <InventarioItems> AddInventarioItems(InventarioItems items)
        {
            var inventarioItems = _services.AddInventorioItems(items);

            if (inventarioItems == null)
            {
                return(NotFound());
            }
            return(inventarioItems);
        }
Пример #2
0
        public InventarioItems AddInventarioItems(InventarioItems items)
        {
            _inventarioItems.Add(items.NombrePro, items);

            return(items);
        }