Beispiel #1
0
        public static void Update(price_list new_price_list, long price_list_id)
        {
            var price_list = SelectById(price_list_id);

            if (price_list != null)
            {
                price_list.hall_id    = new_price_list.hall_id;
                price_list.hall       = new_price_list.hall;
                price_list.price_hour = new_price_list.price_hour;
                price_list.time_from  = new_price_list.time_from;
                price_list.time_to    = new_price_list.time_to;
                context.SaveChanges();
            }
        }
Beispiel #2
0
 public static void Insert(price_list price_list)
 {
     context.price_list.Add(price_list);
     context.SaveChanges();
 }