Esempio n. 1
0
        public virtual ApiDocumentResponseModel MapBOToModel(
            BODocument boDocument)
        {
            var model = new ApiDocumentResponseModel();

            model.SetProperties(boDocument.Rowguid, boDocument.ChangeNumber, boDocument.Document1, boDocument.DocumentLevel, boDocument.DocumentSummary, boDocument.FileExtension, boDocument.FileName, boDocument.FolderFlag, boDocument.ModifiedDate, boDocument.Owner, boDocument.Revision, boDocument.Status, boDocument.Title);

            return(model);
        }
Esempio n. 2
0
        public virtual BODocument MapEFToBO(
            Document ef)
        {
            var bo = new BODocument();

            bo.SetProperties(
                ef.Rowguid,
                ef.ChangeNumber,
                ef.Document1,
                ef.DocumentLevel,
                ef.DocumentSummary,
                ef.FileExtension,
                ef.FileName,
                ef.FolderFlag,
                ef.ModifiedDate,
                ef.Owner,
                ef.Revision,
                ef.Status,
                ef.Title);
            return(bo);
        }
Esempio n. 3
0
        public virtual Document MapBOToEF(
            BODocument bo)
        {
            Document efDocument = new Document();

            efDocument.SetProperties(
                bo.ChangeNumber,
                bo.Document1,
                bo.DocumentLevel,
                bo.DocumentSummary,
                bo.FileExtension,
                bo.FileName,
                bo.FolderFlag,
                bo.ModifiedDate,
                bo.Owner,
                bo.Revision,
                bo.Rowguid,
                bo.Status,
                bo.Title);
            return(efDocument);
        }
Esempio n. 4
0
        public virtual BODocument MapModelToBO(
            Guid rowguid,
            ApiDocumentRequestModel model
            )
        {
            BODocument boDocument = new BODocument();

            boDocument.SetProperties(
                rowguid,
                model.ChangeNumber,
                model.Document1,
                model.DocumentLevel,
                model.DocumentSummary,
                model.FileExtension,
                model.FileName,
                model.FolderFlag,
                model.ModifiedDate,
                model.Owner,
                model.Revision,
                model.Status,
                model.Title);
            return(boDocument);
        }