public ActionResult GroupUserDetail(int pIDGroup)
        {
            try
            {
                Groups_Info pGroupInfo = new Groups_Info();
                if (pGroupInfo.lstUserOfGroupInfo != null)
                {
                    pGroupInfo.lstUserOfGroupInfo.Clear();
                }
                foreach (Groups_Info item in CommonData.GetLstGroups())
                {
                    if (item.Group_Id == pIDGroup)
                    {
                        item.lstUserOfGroupInfo.Clear();
                        pGroupInfo = item;
                        break;
                    }
                }


                //LUC LAY LEN TRONG THU TUC GAN ID_GOUP=ID ROI
                GroupUserBL _groups = new GroupUserBL();
                pGroupInfo.lstUserOfGroupInfo = _groups.GetUserOfGroupByIDGroup(pIDGroup);
                ViewData["pInfo"]             = pGroupInfo;
                return(PartialView("PartialViewGroupUserDetail", ViewData["pInfo"]));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("PartialViewGroupUserDetail"));
            }
        }
Example #2
0
        public static List <User_Info> GetlstUserOfGroupAll()
        {
            try
            {
                GroupUserBL _groups = new GroupUserBL();
                glstUserOfGroupAll = _groups.GetUserOfGroupByIDGroup(0);

                return(glstUserOfGroupAll);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(new List <User_Info>());
            }
        }