Esempio n. 1
0
        public static IEnumerable <VIEW_MST_MEMBER> ToListViewModel(IEnumerable <MST_MEMBER> list)
        {
            var listModel = new List <VIEW_MST_MEMBER>();

            foreach (MST_MEMBER item in list)
            {
                listModel.Add(VIEW_MST_MEMBER.ToViewModel(item));
            }
            return(listModel);
        }
Esempio n. 2
0
        public static VIEW_MST_MEMBER ToViewModel(MST_MEMBER model)
        {
            VIEW_MST_MEMBER item = new VIEW_MST_MEMBER();

            item.MEMBER_CD     = model.MEMBER_CD;
            item.EMAIL         = model.EMAIL;
            item.NAME          = model.NAME;
            item.PASSWORD      = model.PASSWORD;
            item.PHONE         = model.PHONE;
            item.NICKNAME      = model.NICKNAME;
            item.REMARK        = model.REMARK;
            item.USERTYPE      = model.USERTYPE;
            item.LOGINIP       = model.LOGINIP;
            item.PORTRAIT      = model.PORTRAIT;
            item.STATUS        = model.STATUS;
            item.LOGINDATE     = model.LOGINDATE;
            item.CREATE_DT     = model.CREATE_DT;
            item.VERSION       = model.VERSION;
            item.SYNCOPERATION = model.SYNCOPERATION;
            item.SYNCVERSION   = model.SYNCVERSION;
            item.SYNCFLAG      = model.SYNCFLAG;
            return(item);
        }