public ICollection <DrugStatistic> GetCollection() { DateTime to = DateTime.Now; DateTime from = to.AddDays(DATE_OFFSET); return(DrugStatisticsService.GetAllStatistics(from, to)); }
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)); }