public void CreateRole(string roleName, int? parentRoleId = null) { Role newRole = new Role() { Name = roleName, ParentRoleId = parentRoleId}; DataContext db = new DataContext(); db.Roles.Add(newRole); db.SaveChanges(); }
public override void CreateRole(string roleName) { Role newRole = new Role() { Name = roleName}; DataContext db = new DataContext(); db.Roles.Add(newRole); db.SaveChanges(); }