15 lines
417 B
C#
15 lines
417 B
C#
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();
|
|
}
|