public List <Category> GetCategoryList(int BrandID) { List <Category> objCategoryList = new List <Category>(); 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)); //authenticate.TenantId = 1; MasterCaller newMasterCategory = new MasterCaller(); objCategoryList = newMasterCategory.GetCategoryList(new CategoryServices(Cache, Db), authenticate.TenantId, BrandID); } catch (Exception) { throw; } return(objCategoryList); }