Example #1
0
 //
 // GET: Forum
 public async Task <ActionResult> Index()
 {
     // Checks if there are groups
     if (await GroupManager.AreThereAnyGroupsAsnyc())
     {
         return(RedirectToAction("Groups"));
     }
     else
     {
         return(RedirectToAction("AddGroup"));
     }
 }