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); }
public LoginController(WayContext DBContext) : base(DBContext) { }
public DefRepositorioUsuario(WayContext context) : base(context) { RealizaSet = true; }
public HomeController(WayContext DBContext) : base(DBContext) { }
public PessoaController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder) { }
public BaseController(WayContext DBContext, String LogFolder = "Logs") { wayContext = DBContext; ServicoLog = new LogService(LogFolder); }
public UsuarioController(WayContext DBContext) : base(DBContext) { _Service = new UsuarioService(new DefRepositorioUsuario(DBContext)); }
public UsuarioController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder) { }
public PessoaController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder) { //_Service = new PessoaService(); }
public BaseAPIController(WayContext DBContext) : base(DBContext) { }
public LoginController(WayContext DBContext, string LogFolder = "Logs") : base(DBContext, LogFolder) { _Service = new UsuarioService(new DefRepositorioUsuario(DBContext)); }
public BaseManagerTable(WayContext context) : base(context) { }
public DefRepositorioPessoa(WayContext context) : base(context) { RealizaSet = true; }
public BaseRepositorio(WayContext context) { _context = context; }