Hi
I am getting below error - Cannot implicitly convert type System.collection.generic.list
BALStudents bALStudents = new BALStudents();
List Result = bALStudents.GetStudentBreakList();
namespace LMS.BAL
{
public class BALStudents
{
public List GetStudentBreakList()
{
List Result = (from t in context.StudentBreaks
where t.Active == true
orderby t.Name
select t).ToList();
return Result;
}
}
}
Thanks
Jignesh KumarPosted Apr 6, 2023, 3:50 AM
Hello Ramco,
Please try this one, you need to select and convert into new class,
Ramco RamcoPosted Apr 5, 2023, 11:28 AM
resolved.
Table Name & Form Name was same
Thanks