public static IEnumerable <VIEW_MST_MUSTSELL_DTL> ToListViewModel(IEnumerable <MST_MUSTSELL_DTL> list) { var listModel = new List <VIEW_MST_MUSTSELL_DTL>(); foreach (MST_MUSTSELL_DTL item in list) { listModel.Add(VIEW_MST_MUSTSELL_DTL.ToViewModel(item)); } return(listModel); }
public static VIEW_MST_MUSTSELL_DTL ToViewModel(MST_MUSTSELL_DTL model) { VIEW_MST_MUSTSELL_DTL item = new VIEW_MST_MUSTSELL_DTL(); item.MUSTSELL_CD = model.MUSTSELL_CD; item.TYPE = model.TYPE; item.CODE = model.CODE; item.VERSION = model.VERSION; item.SYNCOPERATION = model.SYNCOPERATION; item.SYNCVERSION = model.SYNCVERSION; item.SYNCFLAG = model.SYNCFLAG; return(item); }