Example #1
0
        public static IEnumerable <VIEW_FW_GEO_TREE_LEVEL> ToListViewModel(IEnumerable <FW_GEO_TREE_LEVEL> list)
        {
            var listModel = new List <VIEW_FW_GEO_TREE_LEVEL>();

            foreach (FW_GEO_TREE_LEVEL item in list)
            {
                listModel.Add(VIEW_FW_GEO_TREE_LEVEL.ToViewModel(item));
            }
            return(listModel);
        }
Example #2
0
        public static VIEW_FW_GEO_TREE_LEVEL ToViewModel(FW_GEO_TREE_LEVEL model)
        {
            VIEW_FW_GEO_TREE_LEVEL item = new VIEW_FW_GEO_TREE_LEVEL();

            item.TREE_ID    = model.TREE_ID;
            item.LEVEL_NO   = model.LEVEL_NO;
            item.LEVEL_DESC = model.LEVEL_DESC;
            item.CREATE_DT  = model.CREATE_DT;
            item.CREATE_BY  = model.CREATE_BY;
            item.MODIFY_DT  = model.MODIFY_DT;
            item.MODIFY_BY  = model.MODIFY_BY;
            item.IS_SLS     = model.IS_SLS;
            return(item);
        }