コード例 #1
0
        public List <DistrictAllocationModel> GetDistrictAllocation()
        {
            var       dal   = new DAL_CM();
            var       ds    = dal.Get_District_Allocation();
            DataTable dt    = ds.Tables[0];
            var       model = new List <DistrictAllocationModel>();

            model = DataTableToList.ConvertDataTable <DistrictAllocationModel>(dt);
            return(model);
        }
コード例 #2
0
        public List <SchemesRecordModel> Get()
        {
            var       dal   = new DAL_CM();
            var       ds    = dal.Get_Schemes_Record(null);
            DataTable dt    = ds.Tables[0];
            var       model = new List <SchemesRecordModel>();

            model = DataTableToList.ConvertDataTable <SchemesRecordModel>(dt);
            return(model);
        }