Exemplo n.º 1
0
 public async Task Add(Core.Model.Truck truck)
 {
     await _truckRepository.AddAsync(truck);
 }
Exemplo n.º 2
0
 public async Task Update(Core.Model.Truck truck)
 {
     await _truckRepository.UpdateAsync(truck);
 }
Exemplo n.º 3
0
 public void Update(Core.Model.Truck truck)
 {
     _dBContext.Entry(truck).State = EntityState.Modified;
     _dBContext.SaveChanges();
 }
Exemplo n.º 4
0
 private void Delete(Core.Model.Truck entity)
 {
     _dBContext.Entry(entity).State = EntityState.Deleted;
     _dBContext.SaveChanges();
 }
Exemplo n.º 5
0
 public void Add(Core.Model.Truck truck)
 {
     _dBContext.Trucks.Add(truck);
     _dBContext.SaveChanges();
 }
Exemplo n.º 6
0
 public async Task UpdateAsync(Core.Model.Truck truck)
 {
     _dBContext.Entry(truck).State = EntityState.Modified;
     await _dBContext.SaveChangesAsync();
 }
Exemplo n.º 7
0
 public async Task AddAsync(Core.Model.Truck truck)
 {
     _dBContext.Trucks.Add(truck);
     await _dBContext.SaveChangesAsync();
 }