Ejemplo n.º 1
0
        public List <List <string> > getDBStats()
        {
            List <string> cases = new List <string>();

            cases.Add("Caes");
            cases.Add(caseRepository.GetCountAsync().ToString());

            List <string> patients = new List <string>();

            patients.Add("Patients");
            patients.Add(patientRepository.GetCountAsync().ToString());
            List <string> specimens = new List <string>();

            specimens.Add("Specimens");
            specimens.Add(specimenRepository.GetCountAsync().ToString());
            List <string> slides = new List <string>();

            slides.Add("Slides");
            slides.Add(slideRepository.GetCountAsync().ToString());
            List <string> requestors = new List <string>();

            requestors.Add("Requestors");
            requestors.Add(requestorRepository.GetCountAsync().ToString());

            List <List <string> > result = new List <List <string> >();

            result.Add(cases);
            result.Add(patients);
            result.Add(specimens);
            result.Add(slides);
            result.Add(requestors);

            return(result);
        }