Ejemplo n.º 1
0
        private void DeleteApplicatorTank(object applicatorTankInstance)
        {
            ApplicatorTankViewModel applicatorTankViewModel = applicatorTankInstance as ApplicatorTankViewModel;

            if (applicatorTankViewModel.ApplicatorTank.ApplicatorTankId != 0)
            {
                using (AppDbContext db = App.GetContext())
                {
                    db.ApplicatorTanks.Remove(applicatorTankViewModel.ApplicatorTank);
                    db.SaveChanges();
                }
            }
            Back();
        }