public IActionResult Get(int widgetId)
        {
            var widget = _widgetRepo.Get(widgetId);

            if (widget == null)
            {
                return(NotFound());
            }

            return(new ObjectResult(widget));
        }
        public IActionResult Get(int id)
        {
            var widget = _widgetRepo.Get(id);

            // if no widget is found, return a 404 error
            if (widget == null)
            {
                return(NotFound());
            }

            return(new ObjectResult(widget));
        }