14 lines
502 B
C#
14 lines
502 B
C#
|
using Renis.Database.Models;
|
||
|
|
||
|
namespace Renis.Repositories;
|
||
|
|
||
|
public interface IUserPolisRepository
|
||
|
{
|
||
|
public Task<bool> AddUserPolis(UserPolis userPolis);
|
||
|
public Task<bool> UpdateUserPolis(UserPolis userPolis);
|
||
|
public Task<bool> DeleteUserPolis(UserPolis userPolis);
|
||
|
public Task<UserPolis?> GetUserPolisById(long id);
|
||
|
public Task<UserPolis?> GetUserPolisByUserIdAndPolisId(long userId, long polisId);
|
||
|
public IQueryable<UserPolis> GetUserPolises();
|
||
|
public Task<bool> Save();
|
||
|
}
|