C# Class Blog.Logic.Core.UsersLogic

Inheritance: IUsersLogic
Afficher le fichier Open project: jsnmgpnty/Blogness2.0

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
GetAddress ( User user ) : Address
GetEducations ( User user ) : List
GetUser ( int userId, string username ) : User
PrepareUserForAdding ( User user ) : User
ValidateUser ( User user ) : Error

Method Details

Add() public méthode

public Add ( User user ) : User
user User
Résultat User

Get() public méthode

public Get ( int userId ) : User
userId int
Résultat User

GetByIdentity() public méthode

public GetByIdentity ( string identityId ) : User
identityId string
Résultat User

GetByUserName() public méthode

public GetByUserName ( string userName ) : User
userName string
Résultat User

GetUsers() public méthode

public GetUsers ( int threshold = 10, int skip = 10 ) : List
threshold int
skip int
Résultat List

GetUsersByCommunity() public méthode

public GetUsersByCommunity ( int communityId, int threshold = 5, int skip = 10 ) : List
communityId int
threshold int
skip int
Résultat List

GetUsersWithNoIdentityId() public méthode

public GetUsersWithNoIdentityId ( ) : List
Résultat List

IsValidEmailAddress() public méthode

public IsValidEmailAddress ( string emailaddress ) : bool
emailaddress string
Résultat bool

SearchUsers() public méthode

public SearchUsers ( string query, int threshold = 10, int skip = 10 ) : List
query string
threshold int
skip int
Résultat List

Update() public méthode

public Update ( User user ) : User
user User
Résultat User

UsersLogic() public méthode

public UsersLogic ( IUserRepository userRepository, IAddressRepository addressRepository, IEducationRepository educationRepository, IMediaRepository mediaRepository ) : System
userRepository IUserRepository
addressRepository IAddressRepository
educationRepository IEducationRepository
mediaRepository IMediaRepository
Résultat System