Setup and forms

This commit is contained in:
redtea committed 2024-06-04 21:09:56 +03:00
1 parent aed55f44f9
commit eee7548fc8
47 files changed
+2837 -8138

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PaymentLogs.Repositories
{
internal abstract class Repo<K, V>
{
protected Dictionary<K, V> _data = new Dictionary<K, V>();
public abstract void Load();
public virtual List<V> All()
{
return _data.Values.ToList();
}
public virtual V Get(K key) { return _data[key]; }
public virtual void Update(K key, V value)
{
_data[key] = value;
}
public abstract void Save();
}
}