Beispiel #1
0
        internal void DeleteAlergen(Alergen alergenAles, Preparat preparatAles)
        {
            RestaurantEntities1 context = new RestaurantEntities1();

            context.StergeAlergenDupaID(alergenAles.id_alergen, preparatAles.id_preparat);
            context.SaveChanges();
        }
Beispiel #2
0
        internal void DeletePreparatAlergen(Alergen alergenAles, Preparat preparatAles, Cont user)
        {
            RestaurantEntities1 context = new RestaurantEntities1();

            context.StergeAlergenDupaID(alergenAles.id_alergen, preparatAles.id_preparat);
            context.SaveChanges();
            MainViewModel.Instance.ActiveScreen = new DetaliiPreparatViewModel(preparatAles, user);
            MessageBox.Show("Alergen Sters!");
        }