Exemple #1
0
        // GET: MailBoxes/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var mailBox = await _service.GetMailsById(id);

            var model = _mapper.Map <MailBoxDto>(mailBox);

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

            return(View(model));
        }