Beispiel #1
0
        public void LembrarEmail()
        {
            var    contexto = new TesteLib.DB.Contexto();
            string email    = ConfigurationManager.AppSettings["EmailEndereco"];
            string senha    = ConfigurationManager.AppSettings["EmailSenha"];
            var    usuario  = contexto.UsuarioDB.Where(u => u.Email.Trim().ToLower() == email.Trim().ToLower()).FirstOrDefault();

            TesteLib.BO.Mail mail = new TesteLib.BO.Mail(email, senha);
            mail.LembrarEmail(usuario);
        }
Beispiel #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            var contexto = new TesteLib.DB.Contexto();

            contexto.Database.CreateIfNotExists();
        }