public List <Category> CategoryList() { List <Category> objcategory = 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)); MasterCaller newMasterCategory = new MasterCaller(); objcategory = newMasterCategory.CategoryList(new CategoryServices(Cache, Db), authenticate.TenantId); } catch (Exception) { throw; } return(objcategory); }