コード例 #1
0
 public ActionResult Create(BranchViewModel branchVM)
 {
     branchService.Create(branchVM);
     return(RedirectToAction("Index"));
 }
コード例 #2
0
 public IActionResult Create(Branch branchAddModel)
 {
     _branchService.Create(branchAddModel);
     return(View("Index", _branchService.GetAll()));
 }