public ActionResult SendToManager([Bind(Include = "Id,Resident,BuildingName,Unit,Subject,Body")] Messages messages) { if (ModelState.IsValid) { db.Messages.Add(messages); db.SaveChanges(); MailGun managerMessage = new MailGun(); managerMessage.SendToSingleEmail("*****@*****.**", messages.Subject, messages.Body, messages.Resident, messages.Unit, messages.BuildingName); return(RedirectToAction("MessageSuccess")); } return(View(messages)); }