Hi
I am getting abobe error. Below is the code
C#
if (Utility.IsRoleAssigned("SA").Item1)
{
List Result = bALStudentsBreak.GetStudentBreakList();
}
else
{
List Result =
bALStudentsBreak.GetStudentBreakList(Convert.ToInt32(hdfMentorID.Value));
}
if (Result != null)
{
}Thanks

Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 6, 2023, 8:11 AM EDT
List Result; if (Utility.IsRoleAssigned("SA").Item1) { Result = bALStudentsBreak.GetStudentBreakList(); } else { Result = bALStudentsBreak.GetStudentBreakList(Convert.ToInt32(hdfMentorID.Value)); } if (Result != null) { // Use the Result variable here }Please accept my answer