示例#1
0
        public ActionResult ViewGroup(string groupId)
        {
            ADDomain domain = new ADDomain();
            ADGroup  group  = domain.GetGroupByName(groupId);

            return(View(group));
        }
示例#2
0
        public ActionResult ViewGroup(string group)
        {
            ADDomain    domain    = new ADDomain();
            ADGroup     groupInfo = domain.GetGroupByName(group);
            ViewGroupVM groupVM   = Mapper.Map <ViewGroupVM>(groupInfo);

            groupVM.OldGroupName = groupInfo.GroupName;

            return(View(groupVM));
        }