Files
Keys/Logic/PasswordStoreService.cs

40 lines
728 B
C#
Raw Normal View History

2025-09-22 13:08:08 +02:00
using Models;
using Repository;
namespace Logic;
public class PasswordStoreService : IPasswordStoreService
{
private readonly IRepository repository;
2025-09-22 15:35:31 +02:00
public void Create(PasswordStore item)
2025-09-22 13:08:08 +02:00
{
2025-09-22 15:35:31 +02:00
Create(item);
2025-09-22 13:08:08 +02:00
}
2025-09-22 15:35:31 +02:00
public void Delete(uint ID)
2025-09-22 13:08:08 +02:00
{
throw new NotImplementedException();
}
2025-09-22 15:35:31 +02:00
public void Delete(PasswordStore item)
2025-09-22 13:08:08 +02:00
{
2025-09-22 15:35:31 +02:00
Delete(item.ID);
2025-09-22 13:08:08 +02:00
}
2025-09-22 15:35:31 +02:00
public void Edit(uint ID, PasswordStore newItem)
2025-09-22 13:08:08 +02:00
{
throw new NotImplementedException();
}
public PasswordStore Get(uint ID)
{
2025-09-22 15:35:31 +02:00
return repository.Get(ID);
2025-09-22 13:08:08 +02:00
}
public IEnumerable<PasswordStore> GetAll()
{
2025-09-22 15:35:31 +02:00
return (IEnumerable<PasswordStore>)repository.GetAll();
2025-09-22 13:08:08 +02:00
}
}