C# Class MiniHawraman.Core.Services.Implementations.UserService

Inheritance: IUserService
Exibir arquivo Open project: keyvan/MiniHawraman Class Usage Examples

Public Methods

Method Description
AddUser ( User user ) : void
ChangePassword ( string username, string oldPassword, string newPassword ) : bool
DeleteUser ( int id ) : void
EditUser ( User user ) : void
GetUser ( int id ) : User
GetUser ( string username ) : User
GetUsers ( ) : IEnumerable
GetValidationCode ( string username ) : string
SetValidationCode ( string username, string code ) : void
ValidateUser ( string username, string password ) : bool

Method Details

AddUser() public method

public AddUser ( User user ) : void
user MiniHawraman.Core.Models.User
return void

ChangePassword() public method

public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
return bool

DeleteUser() public method

public DeleteUser ( int id ) : void
id int
return void

EditUser() public method

public EditUser ( User user ) : void
user MiniHawraman.Core.Models.User
return void

GetUser() public method

public GetUser ( int id ) : User
id int
return MiniHawraman.Core.Models.User

GetUser() public method

public GetUser ( string username ) : User
username string
return MiniHawraman.Core.Models.User

GetUsers() public method

public GetUsers ( ) : IEnumerable
return IEnumerable

GetValidationCode() public method

public GetValidationCode ( string username ) : string
username string
return string

SetValidationCode() public method

public SetValidationCode ( string username, string code ) : void
username string
code string
return void

ValidateUser() public method

public ValidateUser ( string username, string password ) : bool
username string
password string
return bool