C# Class Blog.Services.Implementation.UsersService

Inheritance: BaseService, IUsersService
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
Add ( User user ) : User
Get ( int userId ) : User
GetByIdentityId ( 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
SearchUsers ( string query, int threshold = 5, int skip = 10 ) : List
Update ( User user ) : User
UsersService ( IUsersLogic usersLogic ) : System.Collections.Generic

Method Details

Add() public method

public Add ( User user ) : User
user Blog.Common.Contracts.User
return Blog.Common.Contracts.User

Get() public method

public Get ( int userId ) : User
userId int
return Blog.Common.Contracts.User

GetByIdentityId() public method

public GetByIdentityId ( string identityId ) : User
identityId string
return Blog.Common.Contracts.User

GetByUserName() public method

public GetByUserName ( string username ) : User
username string
return Blog.Common.Contracts.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

SearchUsers() public method

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

Update() public method

public Update ( User user ) : User
user Blog.Common.Contracts.User
return Blog.Common.Contracts.User

UsersService() public method

public UsersService ( IUsersLogic usersLogic ) : System.Collections.Generic
usersLogic IUsersLogic
return System.Collections.Generic