public ResponseModel GetModules()
        {
            ResponseModel       objResponseModel           = new ResponseModel();
            List <ModulesModel> objModuleItemResponseModel = new List <ModulesModel>();
            int    StatusCode    = 0;
            string statusMessage = "";

            try
            {
                ////Get token (Double encrypted) and get the tenant id
                string       token        = Convert.ToString(Request.Headers["X-Authorized-Token"]);
                Authenticate authenticate = new Authenticate();
                authenticate = SecurityService.GetAuthenticateDataFromTokenCache(Cache, SecurityService.DecryptStringAES(token));

                SettingsCaller newModule = new SettingsCaller();

                objModuleItemResponseModel = newModule.GetModulesList(new ModuleService(Cache, Db), authenticate.TenantId);

                StatusCode = objModuleItemResponseModel.Count == 0 ? (int)EnumMaster.StatusCode.RecordNotFound : (int)EnumMaster.StatusCode.Success;

                statusMessage = CommonFunction.GetEnumDescription((EnumMaster.StatusCode)StatusCode);

                objResponseModel.Status       = true;
                objResponseModel.StatusCode   = StatusCode;
                objResponseModel.Message      = statusMessage;
                objResponseModel.ResponseData = objModuleItemResponseModel;
            }
            catch (Exception)
            {
                throw;
            }

            return(objResponseModel);
        }