Example #1
0
 private void AddDataInVisit(WelcomeModel user)
 {
     using (var db = new VisitContext())
     {
         db.Add(new VisitModel {
             timein = user.lastin, userid = user.id, timeout = DateTime.Now
         });
         db.SaveChanges();
     }
 }