public IActionResult Delete(int id)
        {
            trechoRepositorio.DeletarTrecho(id);

            contexto.SaveChanges();

            return(Ok("Trecho removido"));
        }
Example #2
0
 public IActionResult Delete(int id)
 {
     trechoRepository.DeletarTrecho(id);
     contexto.SaveChanges();
     return(Ok());
 }