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