Exemplo n.º 1
0
 /// <summary>
 /// Remove a page log entry from database
 /// </summary>
 public void Remove(PageLog pageLog)
 {
     db.PageLogs.Remove(pageLog);
     db.SaveChanges();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Saves a page log entry
 /// </summary>
 /// <param name="page">Page name</param>
 public void AddPageLog(string page)
 {
     var pageLog = new PageLog
     {
         PageLogTime = DateTime.Now,
         AccessCode = page,
         Page = page,
         PageStep = 0
     };
     db.Add(pageLog);
     db.Save();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Add a page log entry to the database
 /// </summary>
 public void Add(PageLog pageLog)
 {
     db.PageLogs.Add(pageLog);
     db.SaveChanges();
 }