示例#1
0
        public virtual ApiFollowerResponseModel MapBOToModel(
            BOFollower boFollower)
        {
            var model = new ApiFollowerResponseModel();

            model.SetProperties(boFollower.Id, boFollower.Blocked, boFollower.DateFollowed, boFollower.FollowRequestStatu, boFollower.FollowedUserId, boFollower.FollowingUserId, boFollower.Muted);

            return(model);
        }
示例#2
0
        public virtual BOFollower MapEFToBO(
            Follower ef)
        {
            var bo = new BOFollower();

            bo.SetProperties(
                ef.Id,
                ef.Blocked,
                ef.DateFollowed,
                ef.FollowRequestStatu,
                ef.FollowedUserId,
                ef.FollowingUserId,
                ef.Muted);
            return(bo);
        }
示例#3
0
        public virtual Follower MapBOToEF(
            BOFollower bo)
        {
            Follower efFollower = new Follower();

            efFollower.SetProperties(
                bo.Blocked,
                bo.DateFollowed,
                bo.FollowRequestStatu,
                bo.FollowedUserId,
                bo.FollowingUserId,
                bo.Id,
                bo.Muted);
            return(efFollower);
        }
示例#4
0
        public virtual BOFollower MapModelToBO(
            int id,
            ApiFollowerRequestModel model
            )
        {
            BOFollower boFollower = new BOFollower();

            boFollower.SetProperties(
                id,
                model.Blocked,
                model.DateFollowed,
                model.FollowRequestStatu,
                model.FollowedUserId,
                model.FollowingUserId,
                model.Muted);
            return(boFollower);
        }