final update
This commit is contained in:
26
Website/LOC.Website.Web/ViewModels/AccountViewModel.cs
Normal file
26
Website/LOC.Website.Web/ViewModels/AccountViewModel.cs
Normal file
@ -0,0 +1,26 @@
|
||||
namespace LOC.Website.Web.ViewModels
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using Common.Models;
|
||||
using Core.Model.Account;
|
||||
|
||||
public class AccountViewModel
|
||||
{
|
||||
private readonly IAccountAdministrator _accountAdministrator;
|
||||
|
||||
public AccountViewModel(IAccountAdministrator accountAdministrator)
|
||||
{
|
||||
_accountAdministrator = accountAdministrator;
|
||||
}
|
||||
|
||||
public List<Account> Accounts()
|
||||
{
|
||||
return _accountAdministrator.GetAllAccountsMatching();
|
||||
}
|
||||
|
||||
public Account GetAccountByName(string name)
|
||||
{
|
||||
return _accountAdministrator.GetAccountByName(name);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user