Esempio n. 1
0
 public Root()
 {
     Academics  = new Academics();
     Admissions = new Admissions();
     Completion = new Completion();
     Cost       = new Cost();
     Earnings   = new Earnings();
     Repayment  = new Repayment();
     School     = new School();
 }
Esempio n. 2
0
        public async Task <bool> AddAsync(core.Repayment Repayment)
        {
            if (await RepaymentExists(Repayment.UNITID))
            {
                return(false);
            }
            var newRepayment = Repayment.ToDataObject();

            _context.Repayment.Add(newRepayment);
            return(_context.ChangeTracker.HasChanges());
        }
Esempio n. 3
0
        public async Task <bool> UpdateAsync(core.Repayment Repayment)
        {
            if (!await RepaymentExists(Repayment.UNITID))
            {
                return(false);
            }
            var upRepayment = Repayment.ToDataObject();

            _context.Repayment.Update(upRepayment);

            _context.Update(upRepayment);
            return(_context.ChangeTracker.HasChanges());
        }