40 lines
728 B
C#
40 lines
728 B
C#
using Models;
|
|
using Repository;
|
|
|
|
namespace Logic;
|
|
|
|
public class PasswordStoreService : IPasswordStoreService
|
|
{
|
|
private readonly IRepository repository;
|
|
|
|
public void Create(PasswordStore item)
|
|
{
|
|
Create(item);
|
|
}
|
|
|
|
public void Delete(uint ID)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void Delete(PasswordStore item)
|
|
{
|
|
Delete(item.ID);
|
|
}
|
|
|
|
public void Edit(uint ID, PasswordStore newItem)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public PasswordStore Get(uint ID)
|
|
{
|
|
return repository.Get(ID);
|
|
}
|
|
|
|
public IEnumerable<PasswordStore> GetAll()
|
|
{
|
|
return (IEnumerable<PasswordStore>)repository.GetAll();
|
|
}
|
|
}
|