Ejemplo n.º 1
0
        public IActionResult Edit(Deposit deposit)
        {
            if (ModelState.IsValid)
            {
                repository.SaveDeposit(deposit);
                TempData["message"] = $"{deposit.Currency.ToString()} deposit has been saved";
                return RedirectToAction("List");
            }

            else
            {
                return View(deposit);
            }
        }