コード例 #1
0
 public IActionResult Edit(DepartmentDto model)
 {
     if (ModelState.IsValid)
     {
         //更新到数据库
         model.CreateTime = temp.CreateTime;
         model.CreateUser = temp.CreateUser;
         _departmentAppService.UpdateDto(model);
         //重定向
         return(RedirectToAction("Index", "Department"));
     }
     return(View(model));
 }