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

            return(await _TrackingContext.SaveChangesAsync());
        }