public async Task <ActionResult> UserEdit(AdminListViewModel model) { if (ModelState.IsValid) { IBLL.IUserManager userManager = new BLL.UserManager(); await userManager.UserEdit(model.Id, model.Email, model.ImagePath, model.SiteName, model.Type); return(RedirectToAction(nameof(AdminList))); } ModelState.AddModelError("", "验证失败"); return(View(model)); }