public ActionResult ObterPeloId(int id)
        {
            var peca = repository.ObterPeloId(id);

            if (peca == null)
            {
                return(NotFound());
            }
            return(Json(peca));
        }
Beispiel #2
0
        public ActionResult ObterPeloId(int id)
        {
            var peca = repository.ObterPeloId(id);

            return(Json(peca));
        }