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