Exemplo n.º 1
0
        public ActionResult Mail(string Name, string Phone, string Email, string Infos)
        {
            Messages messages = new Messages();

            messages.Name       = Name;
            messages.Phone      = Phone;
            messages.Email      = Email;
            messages.Infos      = Infos;
            messages.CreateDate = Convert.ToString(DateTime.Now);
            _context.Add(messages);
            _context.SaveChanges();
            ViewData["Infos"] = "success";
            return(View());
        }