示例#1
0
        public async Task <bool> StoreNewDelayedChargeLineAsync(int DelayedChargeId, DelayedChargeLine DelayedChargeLine)
        {
            DelayedChargeLine.DelayedChargeId = DelayedChargeId;

            _context.DelayedChargeLines.Add(DelayedChargeLine);
            return((await _context.SaveChangesAsync()) > 0);
        }
示例#2
0
 public async Task <bool> DeleteDelayedChargeLine(DelayedChargeLine DelayedChargeLine)
 {
     _context.Remove(DelayedChargeLine);
     return((await _context.SaveChangesAsync()) > 0);
 }
示例#3
0
        public async Task <bool> UpdateDelayedChargeLineAsync(int DelayedChargeId, DelayedChargeLine DelayedChargeLine)
        {
            DelayedChargeLine.DelayedChargeId = DelayedChargeId;

            return((await _context.SaveChangesAsync()) > 0);
        }