コード例 #1
0
        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));
        }
コード例 #2
0
        private string GetSenderEmail(int?systemEmailId)
        {
            var fromEmail = "";

            if (systemEmailId != null)
            {
                fromEmail = _systemEmailService.GetSystemEmail(systemEmailId.Value).EmailAddress;
            }

            return(fromEmail);
        }