C# Class CrowdSourcedNews.Services.Controllers.NewsArticlesController

Inheritance: ApiController
Datei anzeigen Open project: vladislav-karamfilov/TelerikAcademy

Public Methods

Method Description
NewsArticlesController ( IRepository newsArticlesRepository, DbUsersRepository usersRepository, IRepository commentsRepository ) : System

Private Methods

Method Description
EditNewsArticle ( string sessionKey, int id, CrowdSourcedNews.DataTransferObjects.NewsArticleModel newsArticle ) : HttpResponseMessage
GetAll ( string sessionKey ) : HttpResponseMessage
GetImageUrl ( HttpPostedFile image ) : string
GetNewsArticle ( string sessionKey, int id ) : HttpResponseMessage
PostNewsArticle ( string sessionKey, CrowdSourcedNews.DataTransferObjects.NewsArticleModel newsArticle ) : HttpResponseMessage
RateNewsArticle ( string sessionKey, int id, int rate ) : HttpResponseMessage
RemoveNewsArticle ( string sessionKey, int id ) : HttpResponseMessage

Method Details

NewsArticlesController() public method

public NewsArticlesController ( IRepository newsArticlesRepository, DbUsersRepository usersRepository, IRepository commentsRepository ) : System
newsArticlesRepository IRepository
usersRepository DbUsersRepository
commentsRepository IRepository
return System