Exemplo n.º 1
0
        public async Task <bool> StoreNewDelayedChargeLineAsync(int DelayedChargeId, DelayedChargeLine DelayedChargeLine)
        {
            DelayedChargeLine.DelayedChargeId = DelayedChargeId;

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

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