Keep list of data in session::
var Center_List = string.Format("CenterList_{0}", (int)LoggedInOrganizationID);
var centerList = new List<DBCenterDetailModel>();
if (Session[Center_List] != null)
centerList = Session[Center_List] as List<DBCenterDetailModel>;
else
{
centerList = centerService.GetCenterDetail(LoggedInOrganizationID).ToList();
Session[Center_List] = centerList;
}
No comments:
Post a Comment