public async Task <ActionResult> Join(Guid id) { var user = await CharacterFacade.GetCharacterById(Guid.Parse(User.Identity.Name)); if (user != null && !user.GroupId.HasValue) { await GroupFacade.AddToGroup(user.Id, id); return(RedirectToAction("Index")); } return(RedirectToAction("NotAuthorized", "Error")); }