Exemple #1
0
 public void InitializeDatabase(IBrainstormSessionRepository repo)
 {
     if (!repo.List().Any())
     {
         repo.Add(GetTestSession());
     }
 }
 public IActionResult Index(NewSessionModel model)
 {
     if (!ModelState.IsValid)
     {
         return(Index());
     }
     _sessionRepository.Add(new BrainstormSession()
     {
         DateCreated = DateTimeOffset.Now,
         Name        = model.SessionName
     });
     return(new RedirectToActionResult("Index", "Home", null));
 }
Exemple #3
-1
 public void InitializeDatabase(IBrainstormSessionRepository repo)
 {
     if (!repo.List().Any())
     {
         repo.Add(GetTestSession());
     }
 }