public ActionResult CV(MessageToMe message) { if (message.Email != null) { EmailOrderProcessor email = new EmailOrderProcessor(new EmailSettings()); email.ContactWotchMe(message); return(View("Dziekuje")); } else { return(View("CV")); } }
public ActionResult Contact(MessageToMe message) { if (ModelState.IsValid) { EmailOrderProcessor email = new EmailOrderProcessor(new EmailSettings()); email.ContactWotchMe(message); return(View("Dziekuje")); } else { return(View("Contact")); } }