C# Class Purchasing.Mvc.Services.FileService

Inheritance: IFileService
Mostrar archivo Open project: ucdavis/Purchasing

Public Methods

Method Description
FileService ( Guid>.IRepositoryWithTypedId attachmentRepository ) : System
GetAttachment ( System.Guid id ) : Attachment

Return the attachment associated with the given attachmentId, with contents populated

UploadAttachment ( System.Guid id, Stream fileStream ) : void

Upload an attachment to blob storage

Method Details

FileService() public method

public FileService ( Guid>.IRepositoryWithTypedId attachmentRepository ) : System
attachmentRepository Guid>.IRepositoryWithTypedId
return System

GetAttachment() public method

Return the attachment associated with the given attachmentId, with contents populated
public GetAttachment ( System.Guid id ) : Attachment
id System.Guid attachmentID
return Attachment

UploadAttachment() public method

Upload an attachment to blob storage
public UploadAttachment ( System.Guid id, Stream fileStream ) : void
id System.Guid
fileStream Stream
return void