public long UpdateTodaysWeight(WeightInfo weight)
 {
     if (data.ContainsKey(DateTime.Now.ToShortDateString()))
     {
         data[DateTime.Now.ToShortDateString()] = weight;
     }
     return 0;
 }
 public long AddTodaysWeight(WeightInfo weight)
 {
     if (!data.ContainsKey(DateTime.Now.ToShortDateString()))
     {
         data.Add(DateTime.Now.ToShortDateString(), weight);
     }
     return 0;
 }
 private WeightInfo GetTodaysWeight()
 {
     WeightInfo w = new WeightInfo();
     w.ID = 1;
     w.MeasureDate = DateTime.Now;
     w.UnitOfMeasurement = new Unit() { Id = 1, UnitOfMeasurement = "Lbs" };
     w.Weight = 196;
     return w;
 }
 private WeightInfo GetYesterdaysWeight()
 {
     WeightInfo w = new WeightInfo();
     w.ID = 2;
     w.MeasureDate = DateTime.Now.AddDays(-1);
     w.UnitOfMeasurement = new Unit() { Id = 1, UnitOfMeasurement = "Lbs" };
     w.Weight = 197;
     return w;
 }