public void OneTimeSetUp() { vehiclePing = new VehiclePing { VehicleID = 1, PingDate = DateTime.Now }; }
public IActionResult AddPingData(VehiclePing vehiclePing) { if (vehiclePing != null) { _service.Add(vehiclePing); return(Ok()); } return(BadRequest()); }
public virtual void Update(VehiclePing vehiclePing) { _db.Entry(vehiclePing).State = EntityState.Modified; _dbSet.Update(vehiclePing); }
public virtual void Add(VehiclePing vehiclePing) { _dbSet.Add(vehiclePing); }
public void Update(VehiclePing vehiclePing) { _repository.Update(vehiclePing); _repository.SaveChanges(); }
public void Add(VehiclePing vehiclePing) { _repository.Add(vehiclePing); _repository.SaveChanges(); }