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

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

            item.ITEM_ID       = model.ITEM_ID;
            item.ATYPE         = model.ATYPE;
            item.FILE_NAME     = model.FILE_NAME;
            item.TITLE         = model.TITLE;
            item.FILE_PATH     = model.FILE_PATH;
            item.ISIMAGE       = model.ISIMAGE;
            item.THUMB_PATH    = model.THUMB_PATH;
            item.DOWNLOADS     = model.DOWNLOADS;
            item.SIZE          = model.SIZE;
            item.ISDEFAULT     = model.ISDEFAULT;
            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);
        }