よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
//finish edit part // delete part public async Task <IActionResult> DeleteBudget(int id) { bool add = await _budgetRepository.AddToDeletedBudgets(id); if (add == true) { bool success = await _budgetRepository.DeleteBudget(id); return(RedirectToAction(nameof(GetAllBudgets), new { delete = add })); } return(null); }