Exemplo n.º 1
0
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            IEnumerable <AlbumViewModel> albumViewModel = _albumAppService.ObterPorId(id.Value);

            if (albumViewModel == null)
            {
                return(HttpNotFound());
            }
            return(View(albumViewModel));
        }