Dheeraj Sharma

Dheeraj Sharma

  • 2k
  • 98
  • 25k

{"Index was out of range. Must be non-negative and less than

May 2 2018 2:11 AM
if (e2 != null)
{
if (dt != aaa[0].Date && e2[0].BranchId != aaa[0].BranchId && e2[0].StandardId != aaa[0].StandardId && e2[0].MediumId != aaa[0].MediumId)
{
List<AttendenceData> ddd = new List<AttendenceData>();
foreach (var y in e2)
{
ddd.Add(new AttendenceData()
{
Date = dt,
YearId = y.YearId,
StudentId = y.StudentId,
BranchId = y.BranchId,
StandardId = y.StandardId,
BoardId = y.BoardId,
MediumId = y.MediumId,
SubjectId = y.SubjectId,
Present = y.Present,
EnteryDate = System.DateTime.Now,
});
}

Answers (1)