//edit customer details public async Task <IActionResult> EditBudgets(bool Success = false, int Id = 0) { ViewBag.Success = Success; ViewBag.id = Id; var data1 = await _budgetRepository.GetBudgets(); ViewData["budget"] = data1; var data2 = await _budgetRepository.GetBudgetById(Id); return(View(data2)); }
public void ShouldGetBudgets() { DidSaveBudget(); var budgetRepository = new BudgetRepository(); var budgets = budgetRepository.GetBudgets(AccountRepositoryTester.AccountId.ToString()); Assert.NotNull(budgets); Assert.True(budgets.Any()); Assert.True(budgets.Any(b => b.Id == BudgetId)); }
public object GetBudgets(DateTime dateTime) { return(repository.GetBudgets(dateTime)); }