Esempio n. 1
0
        public bool UpdateOrder(Order order)
        {
            DAL.Entity.Order ord_original = _dal.GetOrderById(order.Id);

            if (ord_original != null)
            {
                DAL.Entity.Order ord_mod = ord_original;

                ord_mod.ClientId   = order.ClientId;
                ord_mod.PeymentId  = order.PeymentId;
                ord_mod.DeliveryId = order.DeliveryId;
                ord_mod.Comment    = order.Comment;

                _dal.UpdateOrder(ord_original, ord_mod);
                return(true);
            }
            else
            {
                return(false);
            }
        }