Пример #1
0
        public async ValueTask <Fee> SelectFeeByIdAsync(Guid feeId)
        {
            using var broker = new StorageBroker(this.configuration);
            this.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;

            return(await broker.Fees.FindAsync(feeId));
        }
Пример #2
0
        public async ValueTask <Fee> DeleteFeeAsync(Fee fee)
        {
            using var broker = new StorageBroker(this.configuration);
            EntityEntry <Fee> feeEntityEntry = broker.Fees.Remove(fee);
            await broker.SaveChangesAsync();

            return(feeEntityEntry.Entity);
        }
Пример #3
0
        public async ValueTask <StudentExamFee> DeleteStudentExamFeeAsync(StudentExamFee studentExamFee)
        {
            using var broker = new StorageBroker(this.configuration);
            EntityEntry <StudentExamFee> studentExamFeeEntityEntry = broker.StudentExamFees.Remove(studentExamFee);
            await broker.SaveChangesAsync();

            return(studentExamFeeEntityEntry.Entity);
        }
Пример #4
0
        public async ValueTask <ExamFee> DeleteExamFeeAsync(ExamFee examFee)
        {
            using var broker = new StorageBroker(this.configuration);
            EntityEntry <ExamFee> examFeeEntityEntry = broker.ExamFees.Remove(examFee);
            await broker.SaveChangesAsync();

            return(examFeeEntityEntry.Entity);
        }