Пример #1
0
        public void OrderSign(int id)
        {
            OrderFormView tmp = OrderList.Find(id);

            tmp.status = "Подписан";

            Entry(tmp).State = EntityState.Modified;
            SaveChanges();
        }
Пример #2
0
        public OrderFormView GetOrderById(int id)
        {
            OrderFormView tmp = OrderList.Find(id);

            if (tmp != null)
            {
                var obj_list = ObjectList.Where(c => c.OrderFormViewId == id);

                if (obj_list != null)
                {
                    tmp.obj_list = obj_list.ToList();
                }
            }

            return(tmp);
        }