public virtual ApiFileResponseModel MapBOToModel( BOFile boFile) { var model = new ApiFileResponseModel(); model.SetProperties(boFile.Id, boFile.BucketId, boFile.DateCreated, boFile.Description, boFile.Expiration, boFile.Extension, boFile.ExternalId, boFile.FileSizeInByte, boFile.FileTypeId, boFile.Location, boFile.PrivateKey, boFile.PublicKey); return(model); }
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); }
public virtual File MapBOToEF( BOFile bo) { File efFile = new File(); efFile.SetProperties( bo.BucketId, bo.DateCreated, bo.Description, bo.Expiration, bo.Extension, bo.ExternalId, bo.FileSizeInByte, bo.FileTypeId, bo.Id, bo.Location, bo.PrivateKey, bo.PublicKey); return(efFile); }
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); }