Пример #1
0
        private async void LoadSalesByEmployee(string employee)
        {
            var searchedEmployee = await SalesRepository.GetInstance().FetchSalesByEmployee(employee);

            SalesRepeater.DataSource = searchedEmployee;
            SalesRepeater.DataBind();
        }
Пример #2
0
        private async void LoadSales()
        {
            if (UserSession.SingleInstance.IsAdministrator())
            {
                var salesList = await SalesRepository.GetInstance().FetchAllSalesAsync();

                SalesRepeater.DataSource = salesList;
                SalesRepeater.DataBind();
            }
        }