示例#1
0
        Order IService1.CreateNewOrder(string clientId, string paymentId, string deliveryId, string comment)
        {
            BLL.Models.Order order = new BLL.Models.Order
            {
                ClientId   = Int32.Parse(clientId),
                PeymentId  = Int32.Parse(paymentId),
                DeliveryId = Int32.Parse(deliveryId),
                Comment    = comment
            };

            order = _bll.CreateNewOrder(order);

            return(new Order
            {
                Id = order.Id,
                ClientId = order.ClientId,
                PeymentId = order.PeymentId,
                DeliveryId = order.DeliveryId,
                Comment = order.Comment
            });
        }