Ejemplo n.º 1
0
        public async Task <ActionResult> Create([Bind(Include = "EmailAccountID,Email,DisplayName,Host,Port,Username,Password,EnableSsl,UseDefaultCredentials,IsDefault")] EmailAccount emailAccount)
        {
            if (ModelState.IsValid)
            {
                await emailAccountRepository.CreateAsync(emailAccount);

                return(RedirectToAction("Index"));
            }
            return(View(emailAccount));
        }