public void AddStatistic(CreateStatisticModel model)
 {
     using (var db = new GainTrackerContext(ACTIVE_CONNECTION))
     {
         db.Statistics.Add(Mapper.Map <Statistic>(model));
         db.SaveChanges();
     }
 }
 public void AddDataPoint(CreateDataPointViewModel model)
 {
     using (var db = new GainTrackerContext(ACTIVE_CONNECTION))
     {
         db.DataPoints.Add(Mapper.Map <DataPoint>(model));
         db.SaveChanges();
     }
 }
 public void AddExercise(CreateExerciseViewModel model)
 {
     using (var db = new GainTrackerContext(ACTIVE_CONNECTION))
     {
         db.Exercises.Add(Mapper.Map <Exercise>(model));
         db.SaveChanges();
     }
 }
 public void AddTrackedData(CreateTrackedDataViewModel model)
 {
     using (var db = new GainTrackerContext(ACTIVE_CONNECTION))
     {
         db.TrackedData.Add(Mapper.Map <TrackedData>(model));
         db.SaveChanges();
     }
 }