public async Task <ActionResult> UploadComment(string postId) { if (!(await Authorized())) { return(AccountLogin()); } var getMentionsResult = await AccountManager.GetUserIdsAndNames(); if (getMentionsResult.Success) { ViewBag.Mentions = getMentionsResult.UserIdsAndNames ?? new List <UserIdAndName>(); } else { ViewBag.Mentions = new List <UserIdAndName>(); } ViewBag.Post = PostsManager.GetPostById(UserToken, postId); return(View()); }