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