Beispiel #1
0
        public static tBanner ToEntity(ViewtBanner model)
        {
            tBanner item = new tBanner();

            item.ID         = model.ID;
            item.CreateDate = model.CreateDate;
            item.spic       = model.spic;
            item.sUrl       = model.sUrl;
            item.iType      = model.iType;
            return(item);
        }
Beispiel #2
0
        public static ViewtBanner ToViewModel(tBanner model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewtBanner item = new ViewtBanner();

            item.ID         = model.ID;
            item.CreateDate = model.CreateDate;
            item.spic       = model.spic;
            item.sUrl       = model.sUrl;
            item.iType      = model.iType;
            return(item);
        }