Method | Description | |
---|---|---|
Add ( Blog.Common.Contracts.Media media, int userId ) : Blog.Common.Contracts.Media | ||
Add ( Common user, string albumName, string filename, string path, string contentType ) : Blog.Common.Contracts.Media | ||
Delete ( int mediaId ) : bool | ||
Get ( int mediaId ) : Blog.Common.Contracts.Media | ||
GetByAlbum ( int albumId ) : List |
||
GetByName ( string customName ) : Blog.Common.Contracts.Media | ||
GetByUser ( int userId ) : List |
||
MediaLogic ( IMediaRepository mediaRepository, IAlbumRepository albumRepository, IImageHelper imageHelper, IConfigurationHelper configurationHelper, IFileHelper fileHelper ) : System |
Method | Description | |
---|---|---|
CreateThumbnail ( Blog.Common.Contracts.Media media, string mediaPath, string filename ) : void | ||
GetAlbumByName ( string albumName, int userId ) : |
||
IsMediaSupported ( string mimeType ) : bool | ||
IsVideo ( string mimeType ) : bool | ||
PrepareMediaForAdding ( string filename, int albumId, string mediaPath, int userId, string contentType, string customName ) : Blog.Common.Contracts.Media |
public Add ( Blog.Common.Contracts.Media media, int userId ) : Blog.Common.Contracts.Media | ||
media | Blog.Common.Contracts.Media | |
userId | int | |
return | Blog.Common.Contracts.Media |
public Add ( Common user, string albumName, string filename, string path, string contentType ) : Blog.Common.Contracts.Media | ||
user | Common | |
albumName | string | |
filename | string | |
path | string | |
contentType | string | |
return | Blog.Common.Contracts.Media |
public Get ( int mediaId ) : Blog.Common.Contracts.Media | ||
mediaId | int | |
return | Blog.Common.Contracts.Media |
public GetByName ( string customName ) : Blog.Common.Contracts.Media | ||
customName | string | |
return | Blog.Common.Contracts.Media |
public MediaLogic ( IMediaRepository mediaRepository, IAlbumRepository albumRepository, IImageHelper imageHelper, IConfigurationHelper configurationHelper, IFileHelper fileHelper ) : System | ||
mediaRepository | IMediaRepository | |
albumRepository | IAlbumRepository | |
imageHelper | IImageHelper | |
configurationHelper | IConfigurationHelper | |
fileHelper | IFileHelper | |
return | System |