public string ShareEmail(vmCommon_Share shareModel) { if (ModelState.IsValid) { var serv = _emailService.SendTeamShareEmail(shareModel.EmailAddresses.Split(new[] {';', ','}), shareModel.MessageSubject, shareModel.MessageBody.Replace("{CustomMessage}", shareModel.UserMessageBody)); return serv ? "Success" : "Share Failed"; } return "All required fields must be completed before sending"; }
public ActionResult GetShareEmail(string messageBody) { var shareModel = new vmCommon_Share() {MessageBody = messageBody}; return View(shareModel); }