public ActionResult Edit(int id) { var systemEmail = _systemEmailsService.GetSystemEmail(id); // create view bag first for the vendors populateSystemEmailViewBag(); ViewBag.Message = TempData["Message"]; return(View(systemEmail)); }
private string GetSenderEmail(int?systemEmailId) { var fromEmail = ""; if (systemEmailId != null) { fromEmail = _systemEmailService.GetSystemEmail(systemEmailId.Value).EmailAddress; } return(fromEmail); }