Exemplo n.º 1
0
        public IHttpActionResult GetConsumerOrders(int id)
        {
            List <order> orders = consumerBL.GetConsumerOrders(id);

            if (orders == null)
            {
                return(Ok(orders));
            }
            return(Ok(OrderDTO.convertToListOrderDTO(orders)));
        }
Exemplo n.º 2
0
        public IHttpActionResult GetOrdersByHomeownerId(int homeownerId)
        {
            List <order> orders = orderBL.GetOrdersByHomeownerId(homeownerId);

            return(Ok(OrderDTO.convertToListOrderDTO(orders)));
        }