コード例 #1
0
        public IActionResult Edit(Guid?id)
        {
            if (id.HasValue)
            {
                var dto = _reportService.Get(id.Value);

                if (dto == null)
                {
                    return(NotFound());
                }

                return(View(dto));
            }
            else
            {
                var dto = new ReportDTO
                {
                    MailAccountList = _mailAccountService.List()
                };

                return(View(dto));
            }
        }
コード例 #2
0
 public IActionResult Index()
 {
     return(View(_mailAccount.List()));
 }