// GET: MarcasController/Details/5 public ActionResult Details(int id) { var marca = _marcaApp.GetById(id); var marcaViewModel = _mapper.Map <Marca, MarcaViewModel>(marca); return(View(marcaViewModel)); }
public IActionResult GetById(Guid id) { var marca = _marcaAppService.GetById(id); if (marca == null) { return(NotFound("Marca not found")); } return(ResponseOk(marca)); }