Ejemplo n.º 1
0
        public static SelectListItem ToEntity(VIEW_YX_weiXinMenus weiXinMenu)
        {
            SelectListItem item = new SelectListItem();

            item.Value = weiXinMenu.Id.ToString();
            item.Text  = weiXinMenu.WX_menuName;
            return(item);
        }
Ejemplo n.º 2
0
        public static IEnumerable <VIEW_YX_weiXinMenus> ToListViewModel(IEnumerable <YX_weiXinMenus> list)
        {
            var listModel = new List <VIEW_YX_weiXinMenus>();

            foreach (YX_weiXinMenus item in list)
            {
                listModel.Add(VIEW_YX_weiXinMenus.ToViewModel(item));
            }
            return(listModel);
        }
Ejemplo n.º 3
0
        public static VIEW_YX_weiXinMenus ToViewModel(YX_weiXinMenus model)
        {
            VIEW_YX_weiXinMenus item = new VIEW_YX_weiXinMenus();

            item.Id              = model.Id;
            item.WX_menuName     = model.WX_menuName;
            item.WX_MenuType     = model.WX_MenuType;
            item.WX_MenusKey_URL = model.WX_MenusKey_URL;
            item.WX_Fid          = model.WX_Fid;
            item.WX_AddTime      = model.WX_AddTime;
            item.remark1         = model.remark1;
            item.remark2         = model.remark2;
            item.remark3         = model.remark3;
            item.flat1           = model.flat1;
            item.flat2           = model.flat2;
            item.remark4         = model.remark4;
            item.remark5         = model.remark5;
            item.remark6         = model.remark6;
            item.flat7           = model.flat7;
            item.flat8           = model.flat8;
            item.RegTim1         = model.RegTim1;
            item.RegTim2         = model.RegTim2;
            return(item);
        }