Exemplo n.º 1
0
        private async Task LoadFeatures()
        {
            try
            {
                var list = await FeatureBussines.GetAllAsync();

                FeaturesBindingSource.DataSource = list.OrderBy(q => q.Title).ToList();
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }
        private async Task LoadData(string search = "")
        {
            try
            {
                var liat = await FeatureBussines.GetAllAsync(search);

                ProductBindingSource.DataSource = liat.OrderBy(q => q.Title).ToSortableBindingList();
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }