public ActionResult ProfilePage(tbl_GroupRoleMappingMaster obj, string hid)
        {
            if (Session["User"] == null)
            {
                return(RedirectToAction("LogIn", "LogIn"));
            }
            try
            {
                if (!string.IsNullOrEmpty(hid))
                {
                    new MvcHelper((tbl_UserDetail)Session["User"]);
                    tbl_GroupRoleMappingMaster tbl = new tbl_GroupRoleMappingMaster()
                    {
                        IsActive  = true,
                        GroupName = obj.GroupName,
                        PageName  = obj.PageName,
                        EntryBy   = ((tbl_UserDetail)Session["user"]).UserGroup.ToString(),
                    };
                    MvcHelper.EditGroupRoleMappingMaster(obj, Convert.ToInt32(hid));
                }
            }

            catch
            {
                TempData["Error"] = "Something went wrong.";
            }
            ViewBag.groupList = MvcHelper.GetGroupRoleMappingMasterList();
            return(View());
        }