public static UserReport GetUserCount(string userid) { UserReport userrpt = new UserReport(); DataTable dt = LogDAL.GetUserReport(userid); foreach (DataRow dr in dt.Rows) { userrpt.FillData(dr); } return(userrpt); }