public void AddTracking(Services.Models.Tracking message) { _TrackingContext.Trackings.Add(_Mapper.Map <Entities.Tracking>(message)); _TrackingContext.SaveChangesAsync(); }
public async Task <int> AddTracking(Services.Models.Tracking message) { await _TrackingContext.Trackings.AddAsync(_Mapper.Map <Entities.Tracking>(message)); return(await _TrackingContext.SaveChangesAsync()); }