public IActionResult Get(string id)
        {
            var Producto = objds.GetProducto(new ObjectId(id));

            if (Producto == null)
            {
                return(NotFound());
            }
            return(new ObjectResult(Producto));
        }
Esempio n. 2
0
        public Producto Get(string id)
        {
            var Producto = objds.GetProducto(new ObjectId(id));

            if (Producto == null)
            {
                return(null);
            }
            return(Producto);
        }