Swati Sharma

Swati Sharma

  • NA
  • 17
  • 9.2k

Getting errog in Red colored text that is Guid ,how to defin

Jul 29 2015 8:31 AM
int itemsPerPage = 2;
int pageNumber = Page ?? 1;
List<tblGAdrsState> tblGAdrsStateGuids = new List<tblGAdrsState>();
for (int i = 1; i < 100; i++)
{
tblGAdrsStateGuids.Add(new tblGAdrsState() { Guid= Guid.NewGuid().ToString() });
}
return View(tblGAdrsStateGuids.ToPagedList(pageNumber, 2));

Answers (1)