C# Class Blog.Logic.Core.UsersLogic

Inheritance: IUsersLogic
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

Method 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

Method 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 method

public Add ( User user ) : User
user User
return User

Get() public method

public Get ( int userId ) : User
userId int
return User

GetByIdentity() public method

public GetByIdentity ( string identityId ) : User
identityId string
return User

GetByUserName() public method

public GetByUserName ( string userName ) : User
userName string
return User

GetUsers() public method

public GetUsers ( int threshold = 10, int skip = 10 ) : List
threshold int
skip int
return List

GetUsersByCommunity() public method

public GetUsersByCommunity ( int communityId, int threshold = 5, int skip = 10 ) : List
communityId int
threshold int
skip int
return List

GetUsersWithNoIdentityId() public method

public GetUsersWithNoIdentityId ( ) : List
return List

IsValidEmailAddress() public method

public IsValidEmailAddress ( string emailaddress ) : bool
emailaddress string
return bool

SearchUsers() public method

public SearchUsers ( string query, int threshold = 10, int skip = 10 ) : List
query string
threshold int
skip int
return List

Update() public method

public Update ( User user ) : User
user User
return User

UsersLogic() public method

public UsersLogic ( IUserRepository userRepository, IAddressRepository addressRepository, IEducationRepository educationRepository, IMediaRepository mediaRepository ) : System
userRepository IUserRepository
addressRepository IAddressRepository
educationRepository IEducationRepository
mediaRepository IMediaRepository
return System