Example #1
0
        public virtual ApiLinkLogResponseModel MapBOToModel(
            BOLinkLog boLinkLog)
        {
            var model = new ApiLinkLogResponseModel();

            model.SetProperties(boLinkLog.Id, boLinkLog.DateEntered, boLinkLog.LinkId, boLinkLog.Log);

            return(model);
        }
        public virtual BOLinkLog MapEFToBO(
            LinkLog ef)
        {
            var bo = new BOLinkLog();

            bo.SetProperties(
                ef.Id,
                ef.DateEntered,
                ef.LinkId,
                ef.Log);
            return(bo);
        }
        public virtual LinkLog MapBOToEF(
            BOLinkLog bo)
        {
            LinkLog efLinkLog = new LinkLog();

            efLinkLog.SetProperties(
                bo.DateEntered,
                bo.Id,
                bo.LinkId,
                bo.Log);
            return(efLinkLog);
        }
Example #4
0
        public virtual BOLinkLog MapModelToBO(
            int id,
            ApiLinkLogRequestModel model
            )
        {
            BOLinkLog boLinkLog = new BOLinkLog();

            boLinkLog.SetProperties(
                id,
                model.DateEntered,
                model.LinkId,
                model.Log);
            return(boLinkLog);
        }