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)); }
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); }
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); }
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); }