protected override async Task OnInitializedAsync()
        {
            try
            {
                var products = await SearchProductService.Execute(string.Empty);

                Products = products?.ToList() ?? new List <Product>();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
        protected async Task HandleSearch(string searchTerm)
        {
            try
            {
                var products = await SearchProductService.Execute(searchTerm);

                Products = products?.ToList() ?? new List <Product>();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
                throw;
            }
        }
 public SearchProductController()
 {
     _service = SearchProductService.Instance;
 }