private async void LoadSalesByEmployee(string employee) { var searchedEmployee = await SalesRepository.GetInstance().FetchSalesByEmployee(employee); SalesRepeater.DataSource = searchedEmployee; SalesRepeater.DataBind(); }
private async void LoadSales() { if (UserSession.SingleInstance.IsAdministrator()) { var salesList = await SalesRepository.GetInstance().FetchAllSalesAsync(); SalesRepeater.DataSource = salesList; SalesRepeater.DataBind(); } }