Esempio n. 1
0
        public IActionResult Contacts(MessageBinding messageBinding)
        {
            if (string.IsNullOrEmpty(messageBinding.Email) || string.IsNullOrEmpty(messageBinding.Subject))
            {
                this.Redirect(new HttpResponse()
                {
                }, "/home/contacts");
            }

            MessageServices service = new MessageServices(Data.Data.Context);

            service.MessageFromBind(messageBinding);

            return(this.View("Home", "Index"));
        }