public ResponseModel getDepartmentList()
        {
            List <DepartmentMaster> objDepartmentList = new List <DepartmentMaster>();
            ResponseModel           objResponseModel  = new ResponseModel();
            int    statusCode    = 0;
            string statusMessage = "";

            try
            {
                string       token        = Convert.ToString(Request.Headers["X-Authorized-Token"]);
                Authenticate authenticate = new Authenticate();
                authenticate = SecurityService.GetAuthenticateDataFromTokenCache(Cache, SecurityService.DecryptStringAES(token));

                MasterCaller newMasterBrand = new MasterCaller();

                objDepartmentList = newMasterBrand.GetDepartmentListDetails(new MasterServices(Cache, Db), authenticate.TenantId);

                statusCode =
                    objDepartmentList.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 = objDepartmentList;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(objResponseModel);
        }