Mineplex2018-withcommit/Website/Nautilus.Web.Impulse/ViewModels/AccountViewModel.cs
Jonathan Williams 3fb52c5c71 Initial Commit
2013-08-27 08:14:08 -07:00

31 lines
815 B
C#

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);
}
public Account UpdateAccount(Account account)
{
return _accountAdministrator.UpdateAccount(account);
}
}
}