示例#1
0
        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);
        }
示例#2
0
        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);
        }