public async Task <ActionResult <Widget> > DeleteWidget(int id)
        {
            var widget = await _widgetRepository.DeleteByIdAsync(id);

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

            return(Ok(widget));
        }