public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } #region Métodos utilizando Procedures var ingrediente = _service.SP_GetById(id); #endregion //var ingrediente = _service.Get(id); if (ingrediente == null) { return(NotFound()); } return(View(ingrediente.ToViewModel())); }