public ResponseModel getcitylist(int StateId) { List <CityMaster> objCityList = new List <CityMaster>(); 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 _newMasterCity = new MasterCaller(); objCityList = _newMasterCity.GetCitylist(new MasterServices(Cache, Db), StateId); statusCode = objCityList.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 = objCityList; } catch (Exception) { throw; } return(objResponseModel); }