private void CreateSamples(User user) { try { var project = _sampleGenerator.GenerateProject(user.Id); _projectRepository.Save(project); var template = _sampleGenerator.GenerateTemplate(user.Id); _templateRepository.Save(template); } catch (Exception ex) { _logger.Error() .Message("Error Creating Samples: " + ex.Message) .Exception(ex) .Write(); } }