public ActionResult Create(RoleModel model) { if (ModelState.IsValid) { try { Role role = model.ToEntity(); _authService.AddRole(role); SuccessNotification(String.Format("Thêm mới vai trò {0} thành công", role.Name)); return(RedirectToAction("Index")); } catch (Exception e) { ErrorNotification(e.Message); } } else { AddModelStateErrors(); } //model.RoleList = new SelectList(_authService.GetAllRoles(), "Id", "Name", model.ParentId); Title = "Thêm mới vai trò"; return(View(model)); }