Method | Description | |
---|---|---|
CreateUser ( |
The create new user.
|
|
DeleteUser ( int userId ) : void |
The delete user.
|
|
GetAll ( ) : IEnumerable |
The get all.
|
|
GetById ( int userId ) : |
The get by id.
|
|
GetByName ( string userName ) : |
The get by name.
|
|
GetRoleByName ( string userName ) : string |
The get role by name.
|
|
GetUserEmailById ( int userId ) : string |
The get user email by id.
|
|
GetUserImageById ( int userId ) : byte[] |
The get user image by id.
|
|
UpdateUser ( |
The update user.
|
|
UserRepository ( |
Initializes a new instance of the UserRepository class.
|
public CreateUser ( |
||
user | /// The user. /// | |
return | void |
public DeleteUser ( int userId ) : void | ||
userId | int | /// The user id. /// |
return | void |
public GetById ( int userId ) : |
||
userId | int | /// The user id. /// |
return |
public GetByName ( string userName ) : |
||
userName | string | /// The user name. /// |
return |
public GetRoleByName ( string userName ) : string | ||
userName | string | /// The user name. /// |
return | string |
public GetUserEmailById ( int userId ) : string | ||
userId | int | /// The user id. /// |
return | string |
public GetUserImageById ( int userId ) : byte[] | ||
userId | int | /// The user id. /// |
return | byte[] |
public UpdateUser ( |
||
user | /// The user, which will be updated /// | |
return | void |
public UserRepository ( |
||
dataBaseContext | /// The data base context. /// | |
return | System |