Exemple #1
0
        public static YogaArtClass ToEntity(ViewYogaArtClass model)
        {
            YogaArtClass item = new YogaArtClass();

            item.ID         = model.ID;
            item.ClassName  = model.ClassName;
            item.IsDelete   = model.IsDelete;
            item.Creator    = model.Creator;
            item.CreateTime = model.CreateTime;
            item.ParentID   = model.ParentID;
            return(item);
        }
Exemple #2
0
        public static ViewYogaArtClass ToViewModel(YogaArtClass model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewYogaArtClass item = new ViewYogaArtClass();

            item.ID         = model.ID;
            item.ClassName  = model.ClassName;
            item.IsDelete   = model.IsDelete;
            item.Creator    = model.Creator;
            item.CreateTime = model.CreateTime;
            item.ParentID   = model.ParentID;

            return(item);
        }