internal static bool sendPlanInvite(user u, parkplan p) { string cta = "Join the plan!"; string link = $"http://eurospacecenter.haroenviaene.ikdoeict.net/Plan/Join?id={p.id}"; string body = $"Welcome to Euro Space Center. Someone invited you to be joined at their visit!<br/> We just quickly want you to verify that you're actually you and then you're ready for liftoff 🚀.<br/> If the button doesn't work, try navigating 🛰 to {link}.<br/> Don't worry if you don't have an account yet, you can make one now!"; string subject = "Join a visit"; return(Send(u.email, u.name, body, cta, link, subject)); }
public ActionResult Create(parkplan plan) { if (TryValidateModel(plan)) { var p = plan.Create(user.Get(User.Identity.Name).id); return(RedirectToAction("Detail", new { id = p.id })); } return(View(plan)); }