常用方法
常用方法
常用方法
常用方法
public ActionResult EditBank(int branchId, int bankId) { if (!_bankService.BankIdExists(bankId)) return RedirectToAction("BanksList", new { branchId }); var model = new EditBankDetails(); var bank = _bankService.GetBank(bankId); model.Id = bank.Id; model.Name = bank.Name; model.Code = bank.Code; return View(model); }