Ejemplo n.º 1
0
        public ICollection <DrugStatistic> GetCollection()
        {
            DateTime to   = DateTime.Now;
            DateTime from = to.AddDays(DATE_OFFSET);

            return(DrugStatisticsService.GetAllStatistics(from, to));
        }
Ejemplo n.º 2
0
        public DrugStatistic GetSingle(String pznAsString)
        {
            Int32 pzn = Int32.Parse(pznAsString);

            ValidateDrugExists(pzn);

            DateTime to   = DateTime.Now;
            DateTime from = to.AddDays(DATE_OFFSET);

            return(DrugStatisticsService.GetStatistic(pzn, from, to));
        }