Esempio n. 1
0
        public void ProjectRequest(int idProject, string action)
        {
            int idUser = _userTable.GetUserId(HttpContext.User.Identity.Name);
            var up     = _projectTable.GetUserProjectByIds(idUser, idProject);

            if (action == "confirm")
            {
                up.IdRole = (int)Roles.ProjectUser;
                _projectTable.UpdateUserProject(up);
            }
            else
            {
                _projectTable.DeleteUserProject(up);
            }
        }