public ActionResult UserRole(string id, string FirmID)
        {
            AssignBizContext();
            SecurityUtils.SetGlobalViewbags(this, ActiveMenu, BizContext.UserContext.IsAdmin(), BizContext.UserContext.IsHotelAdmin(), BizContext.HotelID);

            UserOperationsRepository.Encryption64 ob = new UserOperationsRepository.Encryption64();

            string Decryptedoperations = ob.Decrypt(ConvertHexToString(System.Web.HttpContext.Current.Server.UrlDecode(FirmID)), "58421043");

               // string Decryptedoperations = ob.Decrypt(ConvertHexToString(System.Web.HttpContext.Current.Server.UrlDecode("71536E455441584D3568633D")), "58421043");

            long ID = Convert.ToInt64(ob.Decrypt(ConvertHexToString(System.Web.HttpContext.Current.Server.UrlDecode(id)), "58421043"));
            Session["UserID"] = ID;
            UserOperationsRepository modelRepo = new UserOperationsRepository();

            ViewBag.securityGroups = UserOperationsRepository.GetSecurityGroup();

              //  ViewBag.BusinessPartners = model.GetBusinessPartner().FirstOrDefault(f => f.FirmID == Decryptedoperations);
            ViewBag.BusinessPartners = UserOperationsRepository.GetBusinessPartnersList(Decryptedoperations);
               // BaseRepository baseRepo = new BaseRepository();

               // List<UsersOperationsExt> GetBusinessPartners = new List<UsersOperationsExt>();

               //var  GetBusinessPartners1 = BizBusinessPartner.GetBusinessPartners(baseRepo.BizDB, null, FirmID);
               //ViewBag.BusinessPartners = GetBusinessPartners1;

            ViewBag.Hotels = UserOperationsRepository.GetHotelsList(Decryptedoperations);
            ViewBag.UserRights = UserOperationsRepository.GetUserRights(ID);
            ViewBag.UserHotels = UserOperationsRepository.GetUserHotels(ID);
            ViewBag.UserBusinessPartners = UserOperationsRepository.GetUserBusinessPartners(ID);
            ViewBag.Username = modelRepo.GetUsername(ID);
            //ViewBag.SecurityGroup = modelRepo.GetSecurityGroup1(ID);
               // SecurityUtils.SetGlobalViewbags(this, ActiveMenu);
            return View();
        }
 public ActionResult UserRole(string id, string FirmID)
 {
     UserOperationsRepository.Encryption64 ob = new UserOperationsRepository.Encryption64();
     string Decryptedoperations = ob.Decrypt(ConvertHexToString(System.Web.HttpContext.Current.Server.UrlDecode(FirmID)), "58421043");
     long ID = Convert.ToInt64(ob.Decrypt(ConvertHexToString(System.Web.HttpContext.Current.Server.UrlDecode(id)), "58421043"));
     Session["UserID"] = ID;
     UserOperationsRepository modelRepo = new UserOperationsRepository();
     ViewBag.securityGroups = UserOperationsRepository.GetSecurityGroup();
     ViewBag.BusinessPartners = UserOperationsRepository.GetBusinessPartners();
     ViewBag.Hotels = UserOperationsRepository.GetHotels();
     ViewBag.UserRights = UserOperationsRepository.GetUserRights(ID);
     ViewBag.UserHotels = UserOperationsRepository.GetUserHotels(ID);
     ViewBag.UserBusinessPartners = UserOperationsRepository.GetUserBusinessPartners(ID);
     ViewBag.Username = modelRepo.GetUsername(ID);
     SecurityUtils.SetGlobalViewbags(this, ActiveMenu);
     return View();
 }