public void Add(Studio studio) { try { _studioRepository.Add(studio); _logger.LogInformation("New studio was created!"); } catch (Exception exception) { _logger.LogError("An error occurred while creating a studio" + " | " + exception); throw; } }
public async Task AddAndSave(Studio studio) { _studioRepo.Add(studio); await _studioRepo.Save(); }