using Models; using Repository; namespace Logic; public class PasswordStoreService : IPasswordStoreService { private readonly IRepository repository; public int Create(string path, string? displayName = null, string? iconName = null) { throw new NotImplementedException(); } public int Create(PasswordStore item) { return Create(item.Path, item.DisplayName, item.IconName); } public int Delete(uint ID) { throw new NotImplementedException(); } public int Delete(PasswordStore item) { return Delete(item.ID); } public int Edit(uint ID, PasswordStore newItem) { throw new NotImplementedException(); } public PasswordStore Get(uint ID) { return repository.ReadAll().Where(item => item.ID.Equals(ID)).First(); } public IEnumerable GetAll() { return (IEnumerable)repository.ReadAll(); } }