Пример #1
0
        public static DadosSessao StatusSessao(Guid SessaoId, WayContext Context)
        {
            DadosSessao Retorno = new DadosSessao();

            Retorno.Usuario = (from sessao in Context.SessaoUsuario
                               join usuario in Context.Usuarios on sessao.UsuarioID equals usuario.Id
                               where sessao.Id == SessaoId &&
                               sessao.Ativo == true &&
                               usuario.Ativo == true
                               select usuario).FirstOrDefault();

            return(Retorno);
        }
Пример #2
0
 public LoginController(WayContext DBContext) : base(DBContext)
 {
 }
Пример #3
0
 public DefRepositorioUsuario(WayContext context) : base(context)
 {
     RealizaSet = true;
 }
Пример #4
0
 public HomeController(WayContext DBContext) : base(DBContext)
 {
 }
Пример #5
0
 public PessoaController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder)
 {
 }
Пример #6
0
 public BaseController(WayContext DBContext, String LogFolder = "Logs")
 {
     wayContext = DBContext;
     ServicoLog = new LogService(LogFolder);
 }
Пример #7
0
 public UsuarioController(WayContext DBContext) : base(DBContext)
 {
     _Service = new UsuarioService(new DefRepositorioUsuario(DBContext));
 }
Пример #8
0
 public UsuarioController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder)
 {
 }
Пример #9
0
 public PessoaController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder)
 {
     //_Service = new PessoaService();
 }
Пример #10
0
 public BaseAPIController(WayContext DBContext) : base(DBContext)
 {
 }
Пример #11
0
 public LoginController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder)
 {
     _Service = new UsuarioService(new DefRepositorioUsuario(DBContext));
 }
Пример #12
0
 public BaseManagerTable(WayContext context) : base(context)
 {
 }
Пример #13
0
 public DefRepositorioPessoa(WayContext context) : base(context)
 {
     RealizaSet = true;
 }
Пример #14
0
 public BaseRepositorio(WayContext context)
 {
     _context = context;
 }