Exemplo 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();
 }
Exemplo n.º 2
0
        public async Task <bool> AddAsync(core.Earnings earnings)
        {
            if (await EarningsExists(earnings.UNITID))
            {
                return(false);
            }
            var newEarnings = earnings.ToDataObject();

            _context.Earnings.Add(newEarnings);
            return(_context.ChangeTracker.HasChanges());
        }
Exemplo n.º 3
0
        public async Task <bool> UpdateAsync(core.Earnings earnings)
        {
            if (!await EarningsExists(earnings.UNITID))
            {
                return(false);
            }
            var upEarnings = earnings.ToDataObject();

            _context.Earnings.Update(upEarnings);

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