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(); } }
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(); } }