public IActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var contatoViewModel = _contatoAppService.FindById(id.Value);

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

            return(View(contatoViewModel));
        }
        public ActionResult Details(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var contatoViewModel = _contatoAppService.FindById(id.Value);

            if (contatoViewModel == null)
            {
                return(HttpNotFound());
            }

            return(View(contatoViewModel));
        }
 public ContatoViewModel ObterPorId(Guid id)
 {
     return(_contatoAppService.FindById(id));
 }
Esempio n. 4
0
 public ContatoViewModel Get(Guid id)
 {
     return(_contatoAppService.FindById(id));
 }