C# Class RepositoryExample.Service.AccountService

Inheritance: IAccountService
Afficher le fichier Open project: ryancole/RepositoryExample

Méthodes publiques

Méthode Description
AccountService ( IWarcraftContext context ) : System.Data.Entity
GetByEmail ( string email ) : Account

Retrieve a single Account by Email

GetByEmailAndPassword ( string email, string password ) : Account

Retrieve a single Account by Email and Password

Insert ( Account account ) : Account

Insert a new Account

Private Methods

Méthode Description
GetPasswordHash ( string password ) : string

Method Details

AccountService() public méthode

public AccountService ( IWarcraftContext context ) : System.Data.Entity
context IWarcraftContext
Résultat System.Data.Entity

GetByEmail() public méthode

Retrieve a single Account by Email
public GetByEmail ( string email ) : Account
email string
Résultat RepositoryExample.Entity.Account

GetByEmailAndPassword() public méthode

Retrieve a single Account by Email and Password
public GetByEmailAndPassword ( string email, string password ) : Account
email string
password string
Résultat RepositoryExample.Entity.Account

Insert() public méthode

Insert a new Account
public Insert ( Account account ) : Account
account RepositoryExample.Entity.Account
Résultat RepositoryExample.Entity.Account