public static IEnumerable <VIEW_FW_OPERATELOG> ToListViewModel(IEnumerable <FW_OPERATELOG> list) { var listModel = new List <VIEW_FW_OPERATELOG>(); foreach (FW_OPERATELOG item in list) { listModel.Add(VIEW_FW_OPERATELOG.ToViewModel(item)); } return(listModel); }
public static VIEW_FW_OPERATELOG ToViewModel(FW_OPERATELOG model) { VIEW_FW_OPERATELOG item = new VIEW_FW_OPERATELOG(); item.ID = model.ID; item.PROCESS_NAME = model.PROCESS_NAME; item.PROCESS_DESC = model.PROCESS_DESC; item.methodName = model.methodName; item.USER_CD = model.USER_CD; item.USERNAME = model.USERNAME; item.IPADDRESS = model.IPADDRESS; item.DESC = model.DESC; item.METHOD_DESC = model.METHOD_DESC; item.CREATE_DT = model.CREATE_DT; item.STATUS = model.STATUS; return(item); }