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

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

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

Метод Описание
Add ( User user ) : User
Get ( int userId ) : User
GetByIdentity ( string identityId ) : User
GetByUserName ( string userName ) : User
GetUsers ( int threshold = 10, int skip = 10 ) : List
GetUsersByCommunity ( int communityId, int threshold = 5, int skip = 10 ) : List
GetUsersWithNoIdentityId ( ) : List
IsValidEmailAddress ( string emailaddress ) : bool
SearchUsers ( string query, int threshold = 10, int skip = 10 ) : List
Update ( User user ) : User
UsersLogic ( IUserRepository userRepository, IAddressRepository addressRepository, IEducationRepository educationRepository, IMediaRepository mediaRepository ) : System

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

Метод Описание
GetAddress ( User user ) : Address
GetEducations ( User user ) : List
GetUser ( int userId, string username ) : User
PrepareUserForAdding ( User user ) : User
ValidateUser ( User user ) : Error

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

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

public Add ( User user ) : User
user User
Результат User

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

public Get ( int userId ) : User
userId int
Результат User

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

public GetByIdentity ( string identityId ) : User
identityId string
Результат User

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

public GetByUserName ( string userName ) : User
userName string
Результат User

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

public GetUsers ( int threshold = 10, int skip = 10 ) : List
threshold int
skip int
Результат List

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

public GetUsersByCommunity ( int communityId, int threshold = 5, int skip = 10 ) : List
communityId int
threshold int
skip int
Результат List

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

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

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

public IsValidEmailAddress ( string emailaddress ) : bool
emailaddress string
Результат bool

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

public SearchUsers ( string query, int threshold = 10, int skip = 10 ) : List
query string
threshold int
skip int
Результат List

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

public Update ( User user ) : User
user User
Результат User

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

public UsersLogic ( IUserRepository userRepository, IAddressRepository addressRepository, IEducationRepository educationRepository, IMediaRepository mediaRepository ) : System
userRepository IUserRepository
addressRepository IAddressRepository
educationRepository IEducationRepository
mediaRepository IMediaRepository
Результат System