public static tSign ToEntity(ViewtSign model) { tSign item = new tSign(); item.ID = model.ID; item.Uid = model.Uid; item.sMemo = model.sMemo; item.CreateDate = model.CreateDate; item.iType = model.iType; item.iIntegral = model.iIntegral; return(item); }
public static ViewtSign ToViewModel(tSign model) { if (model == null) { return(null); } ViewtSign item = new ViewtSign(); item.ID = model.ID; item.Uid = model.Uid; item.sMemo = model.sMemo; item.CreateDate = model.CreateDate; item.iType = model.iType; item.iIntegral = model.iIntegral; return(item); }