Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 528.3k

Error-The name Result does not exist in the current context

Apr 6 2023 11:59 AM

Hi

  I am getting abobe error. Below is the code

if (Utility.IsRoleAssigned("SA").Item1)
{
    List<StudentsBreak> Result = bALStudentsBreak.GetStudentBreakList();
}
else
{
    List<StudentsBreak> Result = 
    bALStudentsBreak.GetStudentBreakList(Convert.ToInt32(hdfMentorID.Value));
}
if (Result != null)
{
}

Thanks


Answers (1)