public double GetLowestTemperature() { var dao = new DataDAO(); var datas = dao.GetMany(15); if (datas == null || datas.Count == 0) { return(0); } return(datas.OrderBy(d => d.Temperature) .FirstOrDefault() .Temperature); }
public IList <Data> GetData() { var dao = new DataDAO(); return(dao.GetMany(15)); }