Beispiel #1
0
        private async Task PrepareModels(int flowId)
        {
            Accounts = await _accountQueries.GetAll();

            if (flowId > 0)
            {
                Categories = await _categoriesQueries.GetFlowCategories(flowId);

                Products = await _productQueries.GetExpensesFlowProducts(flowId);
            }
            else
            {
                Categories = new List <CategoryModel>();
                Products   = new List <ProductModel>();
            }

            Flows = await _expenseFlowQueries.GetAll(true);
        }