repos #1
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