public void StopSession(Session session)
 {
     if (session == null)
     {
         throw new ArgumentNullException("Session can not be null!");
     }
     else
     {
         AccountServiceCore.Logout(session.Id.ToString());
     }
 }
 public Session StartSession(Account anAccount)
 {
     if (anAccount == null)
     {
         throw new ArgumentNullException("Account can not be null!");
     }
     else
     {
         return(AccountServiceCore.NewSession(anAccount));
     }
 }
 public bool IsLogin(Session session)
 {
     return(AccountServiceCore.IsLogin(session.Id.ToString()));
 }