Ejemplo n.º 1
0
        public virtual ApiEventRelatedDocumentResponseModel MapBOToModel(
            BOEventRelatedDocument boEventRelatedDocument)
        {
            var model = new ApiEventRelatedDocumentResponseModel();

            model.SetProperties(boEventRelatedDocument.Id, boEventRelatedDocument.EventId, boEventRelatedDocument.RelatedDocumentId);

            return(model);
        }
        public virtual BOEventRelatedDocument MapEFToBO(
            EventRelatedDocument ef)
        {
            var bo = new BOEventRelatedDocument();

            bo.SetProperties(
                ef.Id,
                ef.EventId,
                ef.RelatedDocumentId);
            return(bo);
        }
        public virtual EventRelatedDocument MapBOToEF(
            BOEventRelatedDocument bo)
        {
            EventRelatedDocument efEventRelatedDocument = new EventRelatedDocument();

            efEventRelatedDocument.SetProperties(
                bo.EventId,
                bo.Id,
                bo.RelatedDocumentId);
            return(efEventRelatedDocument);
        }
Ejemplo n.º 4
0
        public virtual BOEventRelatedDocument MapModelToBO(
            int id,
            ApiEventRelatedDocumentRequestModel model
            )
        {
            BOEventRelatedDocument boEventRelatedDocument = new BOEventRelatedDocument();

            boEventRelatedDocument.SetProperties(
                id,
                model.EventId,
                model.RelatedDocumentId);
            return(boEventRelatedDocument);
        }