C# Class BAL.Manager.NewsManager

Inheritance: BAL.Manager.BaseManager, INewsManager
Show file Open project: CH033dotNET/Taxi

Public Methods

Method Description
DeleteArticle ( int id ) : bool
GetAllNews ( ) : IEnumerable
GetLatestNews ( int i ) : IEnumerable
GetOneArticle ( int id ) : NewsDTO
NewsManager ( IUnitOfWork uOW ) : System
SaveArticle ( NewsDTO article ) : bool

Method Details

DeleteArticle() public method

public DeleteArticle ( int id ) : bool
id int
return bool

GetAllNews() public method

public GetAllNews ( ) : IEnumerable
return IEnumerable

GetLatestNews() public method

public GetLatestNews ( int i ) : IEnumerable
i int
return IEnumerable

GetOneArticle() public method

public GetOneArticle ( int id ) : NewsDTO
id int
return Model.DTO.NewsDTO

NewsManager() public method

public NewsManager ( IUnitOfWork uOW ) : System
uOW IUnitOfWork
return System

SaveArticle() public method

public SaveArticle ( NewsDTO article ) : bool
article Model.DTO.NewsDTO
return bool