public void InitializeDatabase(IBrainstormSessionRepository repo) { if (!repo.List().Any()) { repo.Add(GetTestSession()); } }
public IActionResult Index() { var model = _sessionRepository.List() .Select(s => new StormSessionViewModel() { Id = s.Id, DateCreated = s.DateCreated, Name = s.Name, IdeaCount = s.Ideas.Count }); return(View(model)); }
public void InitializeDatabase(IBrainstormSessionRepository repo) { if (!repo.List().Any()) { repo.Add(GetTestSession()); } }