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