public IActionResult Delete(int id) { localRepositorio.DeletarLocal(id); contexto.SaveChanges(); return(Ok("Local removido")); }
public IActionResult Delete(int id) { localRepository.DeletarLocal(id); contexto.SaveChanges(); return(Ok()); }