// Probably this coud be refactor to the generic controller
        // But for example I'll keep here
        public async System.Threading.Tasks.Task <Microsoft.AspNetCore.Mvc.IActionResult> Filter(Models.Filter.SupplierFilter filter)
        {
            filter.AddViewData(ViewData);
            var list = await _service.GetAllAsync(filter);

            return(View(nameof(Index), list));
        }
        public async System.Threading.Tasks.Task <System.Collections.Generic.IEnumerable <Models.Ecommerce.Supplier> > GetAllAsync(Models.Filter.SupplierFilter filter)
        {
            var query = DbSet
                        .Where(p =>
                               (string.IsNullOrWhiteSpace(filter.Name) || p.Name.ToLower().Contains(filter.Name.ToLower())));

            return(await query.ToListAsync());
        }