C# Класс Blog.Logic.Core.CommunityLogic

Наследование: ICommunityLogic
Показать файл Открыть проект

Открытые методы

Метод Описание
Add ( Community community ) : Community
CommunityLogic ( ICommunityRepository communityRepository ) : System
Delete ( int communityId ) : bool
Get ( int communityId ) : Community
GetCreatedByUser ( int userId ) : List
GetJoinedByUser ( int userId ) : List
GetList ( ) : List
GetMore ( int skip ) : List
GetMoreCreatedByUser ( int userId, int skip ) : List
GetMoreJoinedByUser ( int userId, int skip ) : List
Update ( Community community ) : Community

Приватные методы

Метод Описание
GetCommunityMemberCount ( int communityId ) : int
IsCommunityNameInUse ( string name ) : bool
IsCommunityNameInUse ( string name, int id ) : bool

Описание методов

Add() публичный метод

public Add ( Community community ) : Community
community Blog.Common.Contracts.Community
Результат Blog.Common.Contracts.Community

CommunityLogic() публичный метод

public CommunityLogic ( ICommunityRepository communityRepository ) : System
communityRepository ICommunityRepository
Результат System

Delete() публичный метод

public Delete ( int communityId ) : bool
communityId int
Результат bool

Get() публичный метод

public Get ( int communityId ) : Community
communityId int
Результат Blog.Common.Contracts.Community

GetCreatedByUser() публичный метод

public GetCreatedByUser ( int userId ) : List
userId int
Результат List

GetJoinedByUser() публичный метод

public GetJoinedByUser ( int userId ) : List
userId int
Результат List

GetList() публичный метод

public GetList ( ) : List
Результат List

GetMore() публичный метод

public GetMore ( int skip ) : List
skip int
Результат List

GetMoreCreatedByUser() публичный метод

public GetMoreCreatedByUser ( int userId, int skip ) : List
userId int
skip int
Результат List

GetMoreJoinedByUser() публичный метод

public GetMoreJoinedByUser ( int userId, int skip ) : List
userId int
skip int
Результат List

Update() публичный метод

public Update ( Community community ) : Community
community Blog.Common.Contracts.Community
Результат Blog.Common.Contracts.Community