示例#1
0
        public static Link Create(OrderListModel orderList, string hostName)
        {
            //we don't need to use taskList to build the self link
            var self = new Link
            {
                Rel = "self",
                HRef = string.Format("http://{0}/{1}", hostName, "orders")
            };

            return self;
        }
示例#2
0
        public static Link Create(OrderListModel orderList, string hostName)
        {
            //we don't need to use taskList to build the self link
            var self = new Link
            {
                Rel  = "self",
                HRef = string.Format("http://{0}/{1}", hostName, "orders")
            };

            return(self);
        }
 public dynamic RetrieveOrders()
 {
     var orders = _ordersDao.FindAll();
     var orderList = new OrderListModel(orders, _hostName);
     return orderList;
 }