Exemple #1
0
        public static Follow ToEntity(ViewFollow model)
        {
            Follow item = new Follow();

            item.Followid      = model.Followid;
            item.Uid           = model.Uid;
            item.QuiltUid      = model.QuiltUid;
            item.FollowDate    = model.FollowDate;
            item.QuiltCenterID = model.QuiltCenterID;
            item.isfollow      = model.isfollow;
            item.iType         = model.iType;
            item.loginType     = model.loginType;
            return(item);
        }
Exemple #2
0
        public static ViewFollow ToViewModel(Follow model)
        {
            if (model == null)
            {
                return(null);
            }

            ViewFollow item = new ViewFollow();

            item.Followid      = model.Followid;
            item.Uid           = model.Uid;
            item.QuiltUid      = model.QuiltUid;
            item.FollowDate    = model.FollowDate;
            item.QuiltCenterID = model.QuiltCenterID;
            item.isfollow      = model.isfollow;
            item.iType         = model.iType;
            item.loginType     = model.loginType;

            return(item);
        }