initial commit
This commit is contained in:
12
Application/Interfaces/Repositories/IKillRepository.cs
Normal file
12
Application/Interfaces/Repositories/IKillRepository.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Interfaces.Repositories;
|
||||
|
||||
public interface IKillRepository
|
||||
{
|
||||
public IEnumerable<Kill> GetAllKills();
|
||||
|
||||
public bool TryGetKillById(int id, out Kill? kill);
|
||||
public void AddKill(Kill kill);
|
||||
public bool RemoveKill(Kill kill);
|
||||
}
|
||||
11
Application/Interfaces/Repositories/IUserRepository.cs
Normal file
11
Application/Interfaces/Repositories/IUserRepository.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Interfaces.Repositories;
|
||||
|
||||
public interface IUserRepository
|
||||
{
|
||||
public IEnumerable<User> GetAllUsers();
|
||||
public bool TryGetUserById(int id, out User? user);
|
||||
public bool AddUser(User user);
|
||||
public bool UpdateUser(User user);
|
||||
}
|
||||
14
Application/Interfaces/Services/IKillService.cs
Normal file
14
Application/Interfaces/Services/IKillService.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Application.Interfaces.Repositories;
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Interfaces.Services;
|
||||
|
||||
public interface IKillService
|
||||
{
|
||||
public IEnumerable<Kill> GetAllKills();
|
||||
public Kill GetKillById(int id);
|
||||
public IEnumerable<Kill> GetKillsByUserId(int userId);
|
||||
public IEnumerable<Kill> GetKillsByUserId(IEnumerable<int> userIds);
|
||||
public bool AddKill(Kill kill);
|
||||
public bool RemoveKill(Kill kill);
|
||||
}
|
||||
12
Application/Interfaces/Services/IUserService.cs
Normal file
12
Application/Interfaces/Services/IUserService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Application.Interfaces.Repositories;
|
||||
using Domain.Entities;
|
||||
|
||||
namespace Application.Interfaces.Services;
|
||||
|
||||
public interface IUserService
|
||||
{
|
||||
public IEnumerable<User> GetAllUsers();
|
||||
public User GetUserById(int id);
|
||||
public bool CreateUser(string username, string password, string email);
|
||||
public bool UpdateUser(int id, string username, string password, string email);
|
||||
}
|
||||
Reference in New Issue
Block a user