Beispiel #1
0
        public ActionResult Index(string id)
        {
            var group = GroupManagementService.GetGroupByName(id);

            if (group != null)
            {
                var model = new ParentalViewModel()
                {
                    Group = group
                };
                return(View(model));
            }

            return(RedirectToAction("GroupNotFound"));
        }
Beispiel #2
0
 public bool IsValidGroup(string groupName)
 {
     return(GroupManagementService.GetGroupByName(groupName) != null);
 }
Beispiel #3
0
        public bool CheckGroupName()
        {
            var group = GroupManagementService.GetGroupByName(this.Name);

            return(@group == null);
        }