Ejemplo n.º 1
0
 private async Task StoreAdvertisementView(
     GetAdvertisementByEnvironmentRequest request, Guid smartDeviceId, Advertisement advertisement)
 {
     _dbContext.AdvertisementViews.Add(new AdvertisementView(
         advertisement.Id,
         smartDeviceId,
         request.Country,
         request.City,
         advertisement.CountTargetAudience(request.Faces)
     ));
     await _dbContext.SaveChangesAsync();
 }