Ejemplo n.º 1
0
        private void Delete(model.Truck truck)
        {
            context.Trucks.DeleteOne(f => f.Id == truck.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.Truck = truck;
            trashBusiness.Update(trash);
        }
Ejemplo n.º 2
0
        private void Delete(model.User user)
        {
            context.Users.DeleteOne(f => f.Id == user.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.User = user;
            trashBusiness.Update(trash);
        }
Ejemplo n.º 3
0
        private void Delete(model.Payroll payroll)
        {
            context.Payrolls.DeleteOne(f => f.Id == payroll.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.Payroll = payroll;
            trashBusiness.Update(trash);
        }
Ejemplo n.º 4
0
        private void Delete(model.OilCompany company)
        {
            context.OilCompanies.DeleteOne(f => f.Id == company.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.OilCompany = company;
            trashBusiness.Update(trash);
        }
Ejemplo n.º 5
0
        private void Delete(model.Employee employee)
        {
            context.Employees.DeleteOne(f => f.Id == employee.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.Employee = employee;
            trashBusiness.Update(trash);
        }
Ejemplo n.º 6
0
        private void Delete(model.PayrollEmployee model)
        {
            context.PayrollEmployees.DeleteOne(f => f.Id == model.Id);

            Trash trashBusiness = new Trash();

            model.Trash trash = new model.Trash();
            trash.PayrollEmployee = model;
            trashBusiness.Update(trash);
        }