Example #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"));
        }
Example #2
0
 public bool IsValidGroup(string groupName)
 {
     return(GroupManagementService.GetGroupByName(groupName) != null);
 }
Example #3
0
        public bool CheckGroupName()
        {
            var group = GroupManagementService.GetGroupByName(this.Name);

            return(@group == null);
        }