예제 #1
0
        public static IEnumerable <VIEW_FW_ROLE> ToListViewModel(IEnumerable <FW_ROLE> list)
        {
            var listModel = new List <VIEW_FW_ROLE>();

            foreach (FW_ROLE item in list)
            {
                listModel.Add(VIEW_FW_ROLE.ToViewModel(item));
            }
            return(listModel);
        }
예제 #2
0
        public static VIEW_FW_ROLE ToViewModel(FW_ROLE model)
        {
            VIEW_FW_ROLE item = new VIEW_FW_ROLE();

            item.ROLE_ID     = model.ROLE_ID;
            item.ROLE_NAME   = model.ROLE_NAME;
            item.ROLE_REMARK = model.ROLE_REMARK;
            item.SEQ_NO      = model.SEQ_NO;
            item.ACTIVE      = model.ACTIVE;
            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);
        }