Exemplo n.º 1
0
        public ActionResult Group()
        {
            var groupList = groupManagement.GetAllActiveGroups();

            ViewBag.groupCount = groupList.Count;
            return(View());
        }
Exemplo n.º 2
0
        public List <SearchObject> GetAllActiveGroups()
        {
            GroupManagement groupManagement = new GroupManagement();
            var             groupList       = groupManagement.GetAllActiveGroups().OrderBy(x => x.GroupName)
                                              .Select(
                row =>
                new SearchObject
            {
                Key       = row.GroupId.ToString(),
                Value     = row.GroupName,
                Attribute = row.GroupColor
            }).Distinct().ToList();

            return(groupList);
        }
Exemplo n.º 3
0
 public ActionResult Index()
 {
     ViewBag.Groups     = groupManagement.GetAllActiveGroups();
     ViewBag.LoggedUser = userDetails.GetUserName(Convert.ToInt16(HttpContext.User.Identity.Name));
     return(View());
 }