Beispiel #1
0
        public List <_Activity> GetAllActivits(Paging activityPage, string key = null)
        {
            List <_Activity> list = null;
            DataSet          ds   = dal.GetAllActivits(activityPage.StartIndex, activityPage.EndIndex, key);
            DataTable        adt  = ds.Tables[1];

            if (adt.IsNotNullAndRowCount())
            {
                list = ModelConvertHelper <_Activity> .ConvertToList(adt);

                activityPage.RecordCount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
            }
            return(list);
        }