public void OrderSign(int id) { OrderFormView tmp = OrderList.Find(id); tmp.status = "Подписан"; Entry(tmp).State = EntityState.Modified; SaveChanges(); }
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); }