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()); }
public override Task <RemoveUserRoleFromProjectResponse> RemoveUserRoleFromProject(RemoveUserRoleFromProjectRequest request, ServerCallContext context) { return(Task.FromResult(_projectManager.RemoveUserRoleFromProject(request))); }