public ActionResult ViewGroup(string groupId) { ADDomain domain = new ADDomain(); ADGroup group = domain.GetGroupByName(groupId); return(View(group)); }
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)); }