iam getting a error looks like
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll
my code is looks like a below
public List<TeamData> GetMemberTeams(int memberid)
{
var memberTeam =
( from m in _DataContext.MemberLogins
join tm in _DataContext.TeamMembers on m.MemberLoginID equals tm.MemberLoginID
join t in _DataContext.Teams on tm.TeamID equals t.TeamID
where m.MemberID == memberid select new TeamData{TeamID=t.TeamID, TeamName= t.TeamName, TeamStatus=t.TeamStatus}).ToList();
return GetMemberTeams(memberid);
}
am getting a error An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll