Пример #1
0
        public void deleteUser(WorkerTicketBLL worker)
        {
            PGUserRepository repository = repositoryFactory.getUserRepository();
            WorkerTicketDAL  workerDAL  = new WorkerTicketDAL
            {
                serial      = worker.serial,
                number      = worker.number,
                lastName    = worker.lastName,
                name        = worker.name,
                patronimic  = worker.patronimic,
                phoneNumber = worker.phoneNumber,
                spec        = worker.speciality,
                workDays    = worker.workDays
            };

            repository.removeBySerial(workerDAL);
        }
Пример #2
0
        public void deleteUser(StudentTicketBLL student)
        {
            PGUserRepository repository = repositoryFactory.getUserRepository();
            StudentTicketDAL studentDAL = new StudentTicketDAL
            {
                serial     = student.serial,
                number     = student.number,
                lastName   = student.lastName,
                name       = student.name,
                patronimic = student.patronimic,
                kurs       = student.kurs,
                speciality = student.speciality,
                facult     = student.facult,
                group      = student.group,
                roomNumber = student.roomNumber
            };

            repository.removeBySerial(studentDAL);
        }