Esempio n. 1
0
        public async Task <ActionResult> Create(InviteTeamMemberViewModel model)
        {
            if (string.IsNullOrEmpty(OwinWrapper.GetClaimValue("sub")))
            {
                return(RedirectToAction("Index", "Home"));
            }

            await _invitationOrchestrator.CreateInvitation(model, OwinWrapper.GetClaimValue("sub"));

            return(RedirectToAction("Index", "Home"));
        }
        public async Task <ActionResult> Create(InviteTeamMemberViewModel model)
        {
            if (string.IsNullOrEmpty(OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName)))
            {
                return(RedirectToAction(ControllerConstants.IndexActionName, ControllerConstants.HomeControllerName));
            }

            await _invitationOrchestrator.CreateInvitation(model, OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName));

            return(RedirectToAction(ControllerConstants.IndexActionName, ControllerConstants.HomeControllerName));
        }