public virtual PedidoModelView Get(int id) { var entity = new PedidoModelView(_pedidoServico.BuscarPorId(id)); if (entity == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(entity); }
public virtual PedidoModelView Get(int id) { var entity = new PedidoModelView(_pedidoServico.BuscarPorId(id)); if (entity == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } //entity.Cartao = entity.Cartao != null ? _cartaoServico.DescriptografarCartao(entity.Cartao) : entity.Cartao; //entity.ListaCompra = _listaCompraServico.AtribuiDescontoAListaCompra(entity.ListaCompra); return(entity); }