Пример #1
0
        public async Task <IActionResult> Invites(string selected) // string statusMessage, string statusType
        {
            ViewData["Controller"] = "Account";
            ViewData["Action"]     = nameof(Invites);

            //ShowStatus(statusMessage, statusType);
            var user = await GetCurrentUserAsync();

            return(View(new InvitesViewModel()
            {
                MyProfile = user,
                InvitesToMe = await _invitationService.GetInvitesToUser(user.UserId.Value),
                InvitesFromMe = await _invitationService.GetInvitesFromUser(user.UserId.Value),
                Selected = selected,
            }));
        }