Exemplo n.º 1
0
 public void AddScreen(Screen screen)
 {
     _logger.LogInformation($"AddScreen, Name = {screen.Name}");
     screen.Name += $"#{screen.Id}";
     _screenRepository.AddScreen(screen);
     _cache.RemoveValueFromCache(AllScreens);
     _logger.LogInformation("Remove all screens from cache");
 }
 public void AddCategory(Category category)
 {
     _categoryRepository.AddCategory(category);
     _cache.RemoveValueFromCache(AllCategories);
     _logger.LogInformation($"Remove all categories from cache");
 }
Exemplo n.º 3
0
 public void AddHive(Hive hive)
 {
     _hiveRepository.AddHive(hive);
     _cache.RemoveValueFromCache(AllHives);
     _logger.LogInformation("Remove all hives from cache");
 }