Пример #1
0
        public async Task <ActionResult <LinhaProducaoDTO> > GetLinhaProducao(long id)
        {
            var linhaProducaoDTO = await repositorio.getLinhaProducaoById(id);

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

            return(linhaProducaoDTO.Value.toDTO());
        }