Exemplo n.º 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));
            }
        }
 public IActionResult Index()
 {
     return(View(_mailAccount.List()));
 }