C# 클래스 BinaryStudio.TaskManager.Logic.Core.NewsRepository

상속: INewsRepository
파일 보기 프로젝트 열기: dv00d00/BinaryStudio.TaskManager

공개 메소드들

메소드 설명
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

메소드 상세

AddNews() 공개 메소드

public AddNews ( News news ) : void
news BinaryStudio.TaskManager.Logic.Domain.News
리턴 void

GetAllNewsForUser() 공개 메소드

public GetAllNewsForUser ( int userId ) : IEnumerable
userId int
리턴 IEnumerable

GetAllUnreadNewsForUser() 공개 메소드

public GetAllUnreadNewsForUser ( int userId ) : IEnumerable
userId int
리턴 IEnumerable

GetNewsById() 공개 메소드

public GetNewsById ( int newsId ) : News
newsId int
리턴 BinaryStudio.TaskManager.Logic.Domain.News

GetNewsCount() 공개 메소드

public GetNewsCount ( int userId ) : int
userId int
리턴 int

GetUnreadNewsCountForUserByName() 공개 메소드

public GetUnreadNewsCountForUserByName ( string userName ) : int
userName string
리턴 int

MarkAllUnreadNewsForUser() 공개 메소드

public MarkAllUnreadNewsForUser ( int userId ) : void
userId int
리턴 void

MarkAsRead() 공개 메소드

public MarkAsRead ( int newsId ) : void
newsId int
리턴 void

NewsRepository() 공개 메소드

public NewsRepository ( DataBaseContext dataBaseContext ) : System.Collections.Generic
dataBaseContext BinaryStudio.TaskManager.Logic.Domain.DataBaseContext
리턴 System.Collections.Generic