Ejemplo n.º 1
0
        public static IEnumerable <VIEW_SET_NAVIGATION_ITEM> ToListViewModel(IEnumerable <SET_NAVIGATION_ITEM> list)
        {
            var listModel = new List <VIEW_SET_NAVIGATION_ITEM>();

            foreach (SET_NAVIGATION_ITEM item in list)
            {
                listModel.Add(VIEW_SET_NAVIGATION_ITEM.ToViewModel(item));
            }
            return(listModel);
        }
Ejemplo n.º 2
0
        public static VIEW_SET_NAVIGATION_ITEM ToViewModel(SET_NAVIGATION_ITEM model)
        {
            VIEW_SET_NAVIGATION_ITEM item = new VIEW_SET_NAVIGATION_ITEM();

            item.ID            = model.ID;
            item.PARENTID      = model.PARENTID;
            item.NAME          = model.NAME;
            item.TITLE         = model.TITLE;
            item.MENU_TYPE     = model.MENU_TYPE;
            item.MENU_URL      = model.MENU_URL;
            item.PUBLISHED     = model.PUBLISHED;
            item.ISOPEN_NEW    = model.ISOPEN_NEW;
            item.MENU_IMAGE    = model.MENU_IMAGE;
            item.SEQ_NO        = model.SEQ_NO;
            item.VERSION       = model.VERSION;
            item.SYNCOPERATION = model.SYNCOPERATION;
            item.SYNCVERSION   = model.SYNCVERSION;
            item.SYNCFLAG      = model.SYNCFLAG;
            item.CREATE_DT     = model.CREATE_DT;
            item.CREATE_BY     = model.CREATE_BY;
            item.MODIFY_DT     = model.MODIFY_DT;
            item.MODIFY_BY     = model.MODIFY_BY;
            return(item);
        }