// POST api/<controller>
 public void Post(LogDTO log)
 {
     try
     {
         ReadingLogEntry newLog = new ReadingLogEntry()
         {
             VersID = log.VersID,
             NumEntries = log.NumEntries
         };
         db.ReadingLogEntries.Add(newLog);
         db.SaveChanges();
     }
     catch
     {
         throw new HttpResponseException(HttpStatusCode.BadRequest);
     }
 }
 // PUT api/<controller>/5
 public void Put(LogDTO log)
 {
     try
     {
         ReadingLogEntry existingLog = db.ReadingLogEntries.Find(log.VersID);
         existingLog.NumEntries = log.NumEntries;
         db.SaveChanges();
     }
     catch
     {
         Post(log);
     }
 }