Exemplo n.º 1
0
        //
        // GET: /Groups/Details/5

        public ActionResult Details(int id = 0)
        {
            GroupTitle grouptitle = db.GroupTitles.Single(g => g.GroupTitleID == id);

            if (grouptitle == null)
            {
                return(HttpNotFound());
            }
            GroupMemberList gm = new GroupMemberList();

            ViewData["GroupMembers"] = gm.GetGroupMemberList(id);
            return(View(grouptitle));
        }
        public ActionResult Index(int id, string search_string)
        {
            //Load all Group members into Viewdata
            GroupMemberList gm = new GroupMemberList();

            ViewData["MyMembers"] = gm.GetGroupMemberList(id);

            ViewBag.GroupName = _getGroupName(id);
            ViewBag.GroupID   = id;

            if (!String.IsNullOrEmpty(search_string))
            {
                GetPeople mySearch = new GetPeople();

                return(View(mySearch.GetSearchedEmployed(search_string)));
            }
            else
            {
                return(View());
            }
        }