public ActionResult Group() { var groupList = groupManagement.GetAllActiveGroups(); ViewBag.groupCount = groupList.Count; return(View()); }
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); }
public ActionResult Index() { ViewBag.Groups = groupManagement.GetAllActiveGroups(); ViewBag.LoggedUser = userDetails.GetUserName(Convert.ToInt16(HttpContext.User.Identity.Name)); return(View()); }