コード例 #1
0
        public virtual BOFile MapEFToBO(
            File ef)
        {
            var bo = new BOFile();

            bo.SetProperties(
                ef.Id,
                ef.BucketId,
                ef.DateCreated,
                ef.Description,
                ef.Expiration,
                ef.Extension,
                ef.ExternalId,
                ef.FileSizeInByte,
                ef.FileTypeId,
                ef.Location,
                ef.PrivateKey,
                ef.PublicKey);
            return(bo);
        }
コード例 #2
0
        public virtual BOFile MapModelToBO(
            int id,
            ApiFileRequestModel model
            )
        {
            BOFile boFile = new BOFile();

            boFile.SetProperties(
                id,
                model.BucketId,
                model.DateCreated,
                model.Description,
                model.Expiration,
                model.Extension,
                model.ExternalId,
                model.FileSizeInByte,
                model.FileTypeId,
                model.Location,
                model.PrivateKey,
                model.PublicKey);
            return(boFile);
        }