コード例 #1
0
        public async Task AddRefuelingSensor(RefuelingSensor refuelingSensor)
        {
            await _context.RefuelingsSensor.AddAsync(refuelingSensor);

            await Save();
        }
コード例 #2
0
 public async Task DeleteRefuelingSensor(RefuelingSensor refuelingSensor)
 {
     _context.RefuelingsSensor.Remove(refuelingSensor);
     await Save();
 }
コード例 #3
0
 public async Task UpdateRefuelingSensor(RefuelingSensor refuelingSensor)
 {
     _context.RefuelingsSensor.Update(refuelingSensor);
     await Save();
 }