Polis repo

This commit is contained in:
Nikolai Papin 2024-09-07 12:13:43 +03:00
parent f669a44a29
commit f94d3e79df
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
using Renis.Database.Models;
namespace Renis.Repositories;
public interface IPolisRepository
{
public Task<bool> AddPolis(Polis polis);
public Task<bool> UpdatePolis(Polis polis);
public Task<bool> DeletePolis(Polis polis);
public Task<Polis?> GetPolisById(long id);
public Task<Polis?> GetPolisByNumber(string number);
public IQueryable<Polis> GetPolises();
public Task<bool> Save();
}

View File