C# Class BLL.User

Users 的摘要说明
Mostra file Open project: cdadmin/clonedeploy Class Usage Examples

Public Methods

Method Description
AddUser ( CloneDeployUser user ) : ValidationResult
DeleteUser ( int userId ) : bool
GetAdminCount ( ) : int
GetUser ( int userId ) : CloneDeployUser
GetUser ( string userName ) : CloneDeployUser
GetUserByApiId ( string apiId ) : CloneDeployUser
GetUserByToken ( string token ) : CloneDeployUser
IsAdmin ( int userId ) : bool
SearchUsers ( string searchString ) : List
SendLockOutEmail ( int userId ) : void
TotalCount ( ) : string
UpdateUser ( CloneDeployUser user ) : ValidationResult
ValidateUser ( Models user, bool isNewUser ) : ValidationResult

Method Details

AddUser() public static method

public static AddUser ( CloneDeployUser user ) : ValidationResult
user CloneDeployUser
return Models.ValidationResult

DeleteUser() public static method

public static DeleteUser ( int userId ) : bool
userId int
return bool

GetAdminCount() public static method

public static GetAdminCount ( ) : int
return int

GetUser() public static method

public static GetUser ( int userId ) : CloneDeployUser
userId int
return CloneDeployUser

GetUser() public static method

public static GetUser ( string userName ) : CloneDeployUser
userName string
return CloneDeployUser

GetUserByApiId() public static method

public static GetUserByApiId ( string apiId ) : CloneDeployUser
apiId string
return Models.CloneDeployUser

GetUserByToken() public static method

public static GetUserByToken ( string token ) : CloneDeployUser
token string
return Models.CloneDeployUser

IsAdmin() public static method

public static IsAdmin ( int userId ) : bool
userId int
return bool

SearchUsers() public static method

public static SearchUsers ( string searchString ) : List
searchString string
return List

SendLockOutEmail() public static method

public static SendLockOutEmail ( int userId ) : void
userId int
return void

TotalCount() public static method

public static TotalCount ( ) : string
return string

UpdateUser() public static method

public static UpdateUser ( CloneDeployUser user ) : ValidationResult
user CloneDeployUser
return Models.ValidationResult

ValidateUser() public static method

public static ValidateUser ( Models user, bool isNewUser ) : ValidationResult
user Models
isNewUser bool
return Models.ValidationResult