public static PedidoItemDTO GerarLinks(this PedidoItemDTO pedidoItemDTO, string urlBase, PedidoEstadoAtualDaAplicacao estadoAtual) { var pedidoHATEOAS = new PedidoHATEOASManager(urlBase, estadoAtual, pedidoItemDTO: pedidoItemDTO); pedidoItemDTO.Links = pedidoHATEOAS.ObterLinks(); return(pedidoItemDTO); }
public static PedidoItemDTO GerarLinks(this PedidoItemDTO pedidoItemDTO, string urlBase, PedidoEstadoAtualDaAplicacao estadoAtual) { var pedidoHATEOAS = new PedidoHATEOASManager(urlBase, estadoAtual, pedidoItemDTO: pedidoItemDTO); pedidoItemDTO.Links = pedidoHATEOAS.ObterLinks(); return pedidoItemDTO; }