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); }
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); }