public async Task Add(Core.Model.Truck truck) { await _truckRepository.AddAsync(truck); }
public async Task Update(Core.Model.Truck truck) { await _truckRepository.UpdateAsync(truck); }
public void Update(Core.Model.Truck truck) { _dBContext.Entry(truck).State = EntityState.Modified; _dBContext.SaveChanges(); }
private void Delete(Core.Model.Truck entity) { _dBContext.Entry(entity).State = EntityState.Deleted; _dBContext.SaveChanges(); }
public void Add(Core.Model.Truck truck) { _dBContext.Trucks.Add(truck); _dBContext.SaveChanges(); }
public async Task UpdateAsync(Core.Model.Truck truck) { _dBContext.Entry(truck).State = EntityState.Modified; await _dBContext.SaveChangesAsync(); }
public async Task AddAsync(Core.Model.Truck truck) { _dBContext.Trucks.Add(truck); await _dBContext.SaveChangesAsync(); }