public void Delete(long id)
        {
            var providerToBeRemoved = Providers.FirstOrDefault(x => x.UniqueId == id);

            Providers.Remove(providerToBeRemoved);

            _ctx.SaveChanges();
        }
Exemple #2
0
        public void Delete(long id)
        {
            var apartmentToBeRemoved = Apartments.FirstOrDefault(x => x.UniqueId == id);

            Apartments.Remove(apartmentToBeRemoved);

            _ctx.SaveChanges();
        }
Exemple #3
0
        public void Delete(long id)
        {
            var toBeRemoved = OtherConsumptions.FirstOrDefault(x => x.UniqueId == id);

            OtherConsumptions.Remove(toBeRemoved);

            _ctx.SaveChanges();
        }
        public void Delete(long id)
        {
            var userToBeRemoved = Users.FirstOrDefault(x => x.UniqueId == id);

            Users.Remove(userToBeRemoved);

            _ctx.SaveChanges();
        }
        public void Delete(long id)
        {
            var toBeRemoved = GeneratedBills.FirstOrDefault(x => x.UniqueId == id);

            GeneratedBills.Remove(toBeRemoved);

            _ctx.SaveChanges();
        }
Exemple #6
0
        public void Delete(long id)
        {
            var consumptionToBeRemove = WaterConsumptions.FirstOrDefault(x => x.UniqueId == id);

            WaterConsumptions.Remove(consumptionToBeRemove);

            _ctx.SaveChanges();
        }
        public void Delete(long id)
        {
            var toBeRemove = Mansions.FirstOrDefault(x => x.UniqueId == id);

            Mansions.Remove(toBeRemove);

            _ctx.SaveChanges();
        }