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

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

            return(model);
        }
Beispiel #2
0
        public virtual BOFollowing MapEFToBO(
            Following ef)
        {
            var bo = new BOFollowing();

            bo.SetProperties(
                ef.UserId,
                ef.DateFollowed,
                ef.Muted);
            return(bo);
        }
Beispiel #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);
        }