From f94d3e79df092c10914bae40e4ecdc159e507959 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Sat, 7 Sep 2024 12:13:43 +0300 Subject: [PATCH] Polis repo --- Repositories/IPolisRepository.cs | 14 ++++++++++++++ Repositories/PolisRepository.cs | 0 2 files changed, 14 insertions(+) create mode 100644 Repositories/IPolisRepository.cs create mode 100644 Repositories/PolisRepository.cs diff --git a/Repositories/IPolisRepository.cs b/Repositories/IPolisRepository.cs new file mode 100644 index 0000000..340ae6f --- /dev/null +++ b/Repositories/IPolisRepository.cs @@ -0,0 +1,14 @@ +using Renis.Database.Models; + +namespace Renis.Repositories; + +public interface IPolisRepository +{ + public Task AddPolis(Polis polis); + public Task UpdatePolis(Polis polis); + public Task DeletePolis(Polis polis); + public Task GetPolisById(long id); + public Task GetPolisByNumber(string number); + public IQueryable GetPolises(); + public Task Save(); +} diff --git a/Repositories/PolisRepository.cs b/Repositories/PolisRepository.cs new file mode 100644 index 0000000..e69de29