renis-backend/Repositories/IPolisRepository.cs

15 lines
417 B
C#
Raw Permalink Normal View History

2024-09-07 09:13:43 +00:00
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();
}