C# 클래스 Ru.GameSchool.BusinessLayer.Services.UserService

Service class that abstracts the interraction around the user entity with the data layer.
상속: BaseService
파일 보기 프로젝트 열기: davidein/Ru.GameSchool 1 사용 예제들

공개 메소드들

메소드 설명
ChangeUserInfoPassword ( string newPassword, int userInfoId ) : void

Change the password of a userinfo instance.

CreateUser ( UserInfo userInfo ) : void

Gets a userinfo instance through a parameter of this function and if it isn't null persist it to the database.

CreateUserLog ( UserLog userLog ) : void

Creates user log

GetUser ( int userId ) : UserInfo

Gets a user by userId

GetUser ( string username ) : UserInfo

Gets a user by username

GetUserStatuses ( ) : IEnumerable

Gets users statuses

GetUserTypes ( ) : IEnumerable

Gets usertypes

GetUsers ( ) : IEnumerable

Returns a collection of userinfo instances.

Login ( string userName, string password, string ipAddress ) : UserInfo

Confirms that user credentials are authentic

Search ( string search, System.Enums userT ) : IEnumerable

User search

UpdateUser ( UserInfo userInfo ) : void

Updates user info

메소드 상세

ChangeUserInfoPassword() 공개 메소드

Change the password of a userinfo instance.
public ChangeUserInfoPassword ( string newPassword, int userInfoId ) : void
newPassword string Clear text password that a user entered.
userInfoId int Id of a userinfo object.
리턴 void

CreateUser() 공개 메소드

Gets a userinfo instance through a parameter of this function and if it isn't null persist it to the database.
public CreateUser ( UserInfo userInfo ) : void
userInfo Ru.GameSchool.DataLayer.Repository.UserInfo Instance of a userinfo
리턴 void

CreateUserLog() 공개 메소드

Creates user log
public CreateUserLog ( UserLog userLog ) : void
userLog Ru.GameSchool.DataLayer.Repository.UserLog
리턴 void

GetUser() 공개 메소드

Gets a user by userId
public GetUser ( int userId ) : UserInfo
userId int Id of the user to get.
리턴 Ru.GameSchool.DataLayer.Repository.UserInfo

GetUser() 공개 메소드

Gets a user by username
public GetUser ( string username ) : UserInfo
username string Username of the user.
리턴 Ru.GameSchool.DataLayer.Repository.UserInfo

GetUserStatuses() 공개 메소드

Gets users statuses
public GetUserStatuses ( ) : IEnumerable
리턴 IEnumerable

GetUserTypes() 공개 메소드

Gets usertypes
public GetUserTypes ( ) : IEnumerable
리턴 IEnumerable

GetUsers() 공개 메소드

Returns a collection of userinfo instances.
public GetUsers ( ) : IEnumerable
리턴 IEnumerable

Login() 공개 메소드

Confirms that user credentials are authentic
public Login ( string userName, string password, string ipAddress ) : UserInfo
userName string The username reserved for the user to login to GameSchool.
password string Password to confirm the user is allowed to log into given username.
ipAddress string
리턴 Ru.GameSchool.DataLayer.Repository.UserInfo

Search() 공개 메소드

User search
public Search ( string search, System.Enums userT ) : IEnumerable
search string
userT System.Enums
리턴 IEnumerable

UpdateUser() 공개 메소드

Updates user info
public UpdateUser ( UserInfo userInfo ) : void
userInfo Ru.GameSchool.DataLayer.Repository.UserInfo
리턴 void