public static SesionRepository GetInstance() { if (instance == null) { instance = new SesionRepository(); } return instance; }
public static SesionRepository GetNewInstance(Usuario user) { instance = new SesionRepository() { User = user, Access = new AccesoRepository().GetAccessByUser(user.Id) }; return instance; }