public void CleanUp() { var da = new SessionDA(); var session = da.GetOneByToken("abcdefghijklmnopqrstuvxyz"); if (session != null) { da.Delete(session); da.SaveChanges(); } }
public void Init() { var da = new SessionDA(); da.Insert(new Session { UserID = 1, Token = "abcdefghijklmnopqrstuvxyz", TimeStamp = DateTime.Now }); da.SaveChanges(); }