public CoHome Registry(CoHome home, out CoSesion session, out Boolean internetStatus) { session = new CoSesion(); internetStatus = true; string sessionToken = string.Empty; home = this.rsHome.Save(home, out sessionToken, out internetStatus); if (home.id != 0) { try { this.daHome.Save(home); session.start = DateTime.Now; session.token = sessionToken; int idSession = new BrSesion().Save(session); } catch (Exception ex) { home = null; } } else { home = null; } return(home); }
public BrBatch() { this.brSession = new BrSesion(); this.brCamera = new BrCamera(); }