Polis repo
This commit is contained in:
parent
f669a44a29
commit
f94d3e79df
14
Repositories/IPolisRepository.cs
Normal file
14
Repositories/IPolisRepository.cs
Normal 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();
|
||||||
|
}
|
0
Repositories/PolisRepository.cs
Normal file
0
Repositories/PolisRepository.cs
Normal file
Loading…
Reference in New Issue
Block a user