public RemoveUserRoleFromProjectResponse RemoveUserRoleFromProject(RemoveUserRoleFromProjectRequest request)
        {
            var projectrole = _unitOfWork.ProjectRoleRepository.GetActiveRight(request.IdentityId, request.ProjectId, request.RoleId);

            if (projectrole != null)
            {
                projectrole.IsDeleted = true;
                projectrole.DeletedAt = DateTime.Now;
                projectrole.DeletedBy = 1;
            }
            _unitOfWork.ProjectRoleRepository.Save();

            return(new RemoveUserRoleFromProjectResponse());
        }
예제 #2
0
 public override Task <RemoveUserRoleFromProjectResponse> RemoveUserRoleFromProject(RemoveUserRoleFromProjectRequest request, ServerCallContext context)
 {
     return(Task.FromResult(_projectManager.RemoveUserRoleFromProject(request)));
 }