public void Delete([FromUri] int id) { if (id != 0) { using (var dbCliente = new ClienteRep()) { dbCliente.Delete(id); } } }
public async Task <bool> Delete(int id) { bool result = _repositorio.Delete(id); return(result); }
public void Delete([FromUri] int id) { if (id != 0) { using (var dbCliente = new ClienteRep()) { dbCliente.Delete(id); } } }
public async Task <bool> Delete(int id) { bool result = _repositorio.Delete(id); return(result); }