Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mrNumber"></param>
        /// <returns></returns>
        public int GetCensusCount(string mrNumber)
        {
            int censusCount = 0;

            epi.CensusService.ServiceUrl = censusUrl;
            Censusrequest req = new Censusrequest();

            censusCount = epi.CensusService.GetCensusCount(req.ApplicationName, req.AppPassKey, req.VunetId, mrNumber);
            return(censusCount);
        }
Ejemplo n.º 2
0
        public List <CensusModel> GetCensusRecords(string mrNumber, string vunetId)
        {
            List <epi.CensusRecord> censusRecords = new List <epi.CensusRecord>();
            Censusrequest           req           = new Censusrequest();

            epi.CensusService.ServiceUrl = censusUrl;
            int i;

            censusRecords = epi.CensusService.GetCensusRecords(req.ApplicationName, req.AppPassKey, vunetId, mrNumber);
            //,null,null,null,null,null,null,null,null,null
            i = epi.CensusService.GetCensusCount(req.ApplicationName, req.AppPassKey, req.VunetId, mrNumber);
            Debug.WriteLine(i);
            List <CensusModel> censusModel = new List <CensusModel>();

            foreach (var item in censusRecords)
            {
                censusModel.Add(CovertToModel(item));
            }
            return(censusModel);
        }