C# Class BinaryStudio.TaskManager.Logic.Core.NewsRepository

Inheritance: INewsRepository
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager

Méthodes publiques

Méthode Description
AddNews ( News news ) : void
GetAllNewsForUser ( int userId ) : IEnumerable
GetAllUnreadNewsForUser ( int userId ) : IEnumerable
GetNewsById ( int newsId ) : News
GetNewsCount ( int userId ) : int
GetUnreadNewsCountForUserByName ( string userName ) : int
MarkAllUnreadNewsForUser ( int userId ) : void
MarkAsRead ( int newsId ) : void
NewsRepository ( DataBaseContext dataBaseContext ) : System.Collections.Generic

Method Details

AddNews() public méthode

public AddNews ( News news ) : void
news BinaryStudio.TaskManager.Logic.Domain.News
Résultat void

GetAllNewsForUser() public méthode

public GetAllNewsForUser ( int userId ) : IEnumerable
userId int
Résultat IEnumerable

GetAllUnreadNewsForUser() public méthode

public GetAllUnreadNewsForUser ( int userId ) : IEnumerable
userId int
Résultat IEnumerable

GetNewsById() public méthode

public GetNewsById ( int newsId ) : News
newsId int
Résultat BinaryStudio.TaskManager.Logic.Domain.News

GetNewsCount() public méthode

public GetNewsCount ( int userId ) : int
userId int
Résultat int

GetUnreadNewsCountForUserByName() public méthode

public GetUnreadNewsCountForUserByName ( string userName ) : int
userName string
Résultat int

MarkAllUnreadNewsForUser() public méthode

public MarkAllUnreadNewsForUser ( int userId ) : void
userId int
Résultat void

MarkAsRead() public méthode

public MarkAsRead ( int newsId ) : void
newsId int
Résultat void

NewsRepository() public méthode

public NewsRepository ( DataBaseContext dataBaseContext ) : System.Collections.Generic
dataBaseContext BinaryStudio.TaskManager.Logic.Domain.DataBaseContext
Résultat System.Collections.Generic