Exemplo n.º 1
0
        public virtual ApiFeedResponseModel MapBOToModel(
            BOFeed boFeed)
        {
            var model = new ApiFeedResponseModel();

            model.SetProperties(boFeed.Id, boFeed.FeedType, boFeed.FeedUri, boFeed.JSON, boFeed.Name);

            return(model);
        }
Exemplo n.º 2
0
        public virtual BOFeed MapEFToBO(
            Feed ef)
        {
            var bo = new BOFeed();

            bo.SetProperties(
                ef.Id,
                ef.FeedType,
                ef.FeedUri,
                ef.JSON,
                ef.Name);
            return(bo);
        }
Exemplo n.º 3
0
        public virtual Feed MapBOToEF(
            BOFeed bo)
        {
            Feed efFeed = new Feed();

            efFeed.SetProperties(
                bo.FeedType,
                bo.FeedUri,
                bo.Id,
                bo.JSON,
                bo.Name);
            return(efFeed);
        }
Exemplo n.º 4
0
        public virtual BOFeed MapModelToBO(
            string id,
            ApiFeedRequestModel model
            )
        {
            BOFeed boFeed = new BOFeed();

            boFeed.SetProperties(
                id,
                model.FeedType,
                model.FeedUri,
                model.JSON,
                model.Name);
            return(boFeed);
        }