예제 #1
0
        public IEnumerable <OrganizationModel> GetOrganization()
        {
            DataTable data = SqlHelper.ExecuteDataTable(@" select * from SJOrganization ", null);

            return(SqlHelper.DataTableToModelList <OrganizationModel>(data));
        }
예제 #2
0
        public IEnumerable <OrganizationModel> GetOrganization(int orgId)
        {
            DataTable data = SqlHelper.ExecuteDataTable(@" select * from SJOrganization where id=@Id ", new SqlParameter[] { new SqlParameter("@Id", orgId) });

            return(SqlHelper.DataTableToModelList <OrganizationModel>(data));
        }
예제 #3
0
        public IEnumerable <MainMenuModel> GetAllMenu()
        {
            DataTable data = SqlHelper.ExecuteDataTable(" SELECT * FROM SJMainMenu order by ShowOrder ;", null);

            return(SqlHelper.DataTableToModelList <MainMenuModel>(data));
        }