private void log(string content, int CaseID)
 {
     Conveyance.Models.Log log = new Conveyance.Models.Log();
     log.DateTime = DateTime.Now;
     log.UserID   = User.Identity.GetUserId();
     log.Content  = content;
     log.CaseID   = CaseID;
     db.Log.Add(log);
     db.SaveChanges();
 }
 private void log(string content, int CaseID)
 {
     Conveyance.Models.Log log = new Conveyance.Models.Log();
     log.DateTime = DateTime.Now;
     log.UserID = User.Identity.GetUserId();
     log.Content = content;
     log.CaseID = CaseID;
     db.Log.Add(log);
     db.SaveChanges();
 }