C# Class Purchasing.Mvc.Services.FileService

Inheritance: IFileService
Afficher le fichier Open project: ucdavis/Purchasing

Méthodes publiques

Méthode 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 méthode

public FileService ( Guid>.IRepositoryWithTypedId attachmentRepository ) : System
attachmentRepository Guid>.IRepositoryWithTypedId
Résultat System

GetAttachment() public méthode

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

UploadAttachment() public méthode

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