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