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

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

            item.MUSTSELL_CD   = model.MUSTSELL_CD;
            item.MUSTSELL_NAME = model.MUSTSELL_NAME;
            item.STARTDAY      = model.STARTDAY;
            item.ENDDAY        = model.ENDDAY;
            item.VERSION       = model.VERSION;
            item.SYNCOPERATION = model.SYNCOPERATION;
            item.SYNCVERSION   = model.SYNCVERSION;
            item.SYNCFLAG      = model.SYNCFLAG;
            return(item);
        }