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); }
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); }