示例#1
0
        public async Task <ActionResult> Edit(EditRoleModel model)
        {
            if (ModelState.IsValid)
            {
                var role = Mapper.Map <EditRoleModel, RoleInfo>(model);
                await _roleInfoService.UpdateAsync(role, role.Id);

                return(RedirectToAction("Index"));
            }
            return(View(model));
        }