private int SetPendingListThrough() { MasterLCBLL masterBLL = new MasterLCBLL(); string UserEmpId = ((SessionUser)Session["SessionUser"]).EID; var PandingList = masterBLL.GetApprovallistByEid(UserEmpId); return(PandingList.Count()); }
public void GetPandingList() { try { string UserEmpId = ((SessionUser)Session["SessionUser"]).EID; var PandingList = masterBLL.GetApprovallistByEid(UserEmpId); if (PandingList.Count() != 0) { gridviewPanding.DataSource = PandingList; gridviewPanding.DataBind(); } } catch (Exception) { throw; } }