示例#1
0
        public async Task <ActionResult <Produtos> > Delete(int id)
        {
            Produtos produtosDel = await repositorio.Get(id);

            if (produtosDel == null)
            {
                return(NotFound());
            }
            await repositorio.Delete(produtosDel);

            return(produtosDel);
        }