public virtual ApiFollowingResponseModel MapBOToModel(
            BOFollowing boFollowing)
        {
            var model = new ApiFollowingResponseModel();

            model.SetProperties(boFollowing.UserId, boFollowing.DateFollowed, boFollowing.Muted);

            return(model);
        }
Ejemplo n.º 2
0
        public virtual BOFollowing MapEFToBO(
            Following ef)
        {
            var bo = new BOFollowing();

            bo.SetProperties(
                ef.UserId,
                ef.DateFollowed,
                ef.Muted);
            return(bo);
        }
Ejemplo n.º 3
0
        public virtual Following MapBOToEF(
            BOFollowing bo)
        {
            Following efFollowing = new Following();

            efFollowing.SetProperties(
                bo.DateFollowed,
                bo.Muted,
                bo.UserId);
            return(efFollowing);
        }
        public virtual BOFollowing MapModelToBO(
            string userId,
            ApiFollowingRequestModel model
            )
        {
            BOFollowing boFollowing = new BOFollowing();

            boFollowing.SetProperties(
                userId,
                model.DateFollowed,
                model.Muted);
            return(boFollowing);
        }