C# Class RepositoryExample.Service.AccountService

Inheritance: IAccountService
显示文件 Open project: ryancole/RepositoryExample

Public Methods

Method 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

Method Description
GetPasswordHash ( string password ) : string

Method Details

AccountService() public method

public AccountService ( IWarcraftContext context ) : System.Data.Entity
context IWarcraftContext
return System.Data.Entity

GetByEmail() public method

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

GetByEmailAndPassword() public method

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

Insert() public method

Insert a new Account
public Insert ( Account account ) : Account
account RepositoryExample.Entity.Account
return RepositoryExample.Entity.Account