public static Session Create(string name, string password,string mandant, DataAccessLayer.NetworkState state) { if (state == DataAccessLayer.NetworkState.Disconnected) { var session = new Session(); session.ID = null; session.UserID = null; return session; } else { DataAccessLayer.DAL_Session dal_Session = new DataAccessLayer.DAL_Session (); var session = new Session(); dal_Session.GetSession (ref session,name,password,mandant,state); return session; } }
public static Session Create() { var session = new Session (); return session; }