C# Class Spontaneous.WebApp.Services.ImageExtensionMethods

Show file Open project: pashkov/Spontaneous

Public Methods

Method Description
UploadImageToDish ( this dishWithImages, MongoGridFS gridFS, System fs, string imageName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo
UploadImageToDish ( this dishWithImages, MongoGridFS gridFS, System fs, string imageName, string contentType ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo
UploadImageToRestaurant ( this rest, MongoGridFS gridFS, System fs, string imageName, string contentType ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo

Method Details

UploadImageToDish() public static method

public static UploadImageToDish ( this dishWithImages, MongoGridFS gridFS, System fs, string imageName ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo
dishWithImages this
gridFS MongoDB.Driver.GridFS.MongoGridFS
fs System
imageName string
return MongoDB.Driver.GridFS.MongoGridFSFileInfo

UploadImageToDish() public static method

public static UploadImageToDish ( this dishWithImages, MongoGridFS gridFS, System fs, string imageName, string contentType ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo
dishWithImages this
gridFS MongoDB.Driver.GridFS.MongoGridFS
fs System
imageName string
contentType string
return MongoDB.Driver.GridFS.MongoGridFSFileInfo

UploadImageToRestaurant() public static method

public static UploadImageToRestaurant ( this rest, MongoGridFS gridFS, System fs, string imageName, string contentType ) : MongoDB.Driver.GridFS.MongoGridFSFileInfo
rest this
gridFS MongoDB.Driver.GridFS.MongoGridFS
fs System
imageName string
contentType string
return MongoDB.Driver.GridFS.MongoGridFSFileInfo