public ActionResult DeletarConfirma(int codigoVenda) { var response = _appVenda.Delete(codigoVenda); if (response.Status != HttpStatusCode.OK) { return(Error(response.ContentAsString)); } return(Content(response.Content)); }