public async Task <IActionResult> InviteToProject(InviteContributorViewModel input)

        {
            var User = await userManager.FindByIdAsync(input.UserId);

            var project = await gsv.FindProjectFromProjectId(input.ProjectId);

            if (project != null)
            {
                var projectMember = new ProjectMembers()
                {
                    Applicationstatus = "Invited", AuthorTestUser = User, Project = project
                };

                var check = await gsv.RecruitContributor(projectMember);

                if (check)
                {
                    TempData["submission"] = "User has been invited to the project! ";
                    TempData["AlertType"]  = "alert-success";

                    return(RedirectToAction("index"));
                }
            }


            TempData["submission"] = "User has been not been invited to the project! check the Project Id is correct. ";
            TempData["AlertType"]  = "alert-danger";

            return(RedirectToAction("index"));
        }
        public IActionResult InviteContributorToProject(string ProjectId)
        {
            var InviteContributorModel = new InviteContributorViewModel()
            {
                UserId = ProjectId
            };

            return(View(InviteContributorModel));
        }