First commit
This commit is contained in:
18
Logic/UserService.cs
Normal file
18
Logic/UserService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Models;
|
||||
using Repository;
|
||||
|
||||
namespace Logic;
|
||||
|
||||
public class UserService : IUserService
|
||||
{
|
||||
private IRepository repository;
|
||||
public User? Read()
|
||||
{
|
||||
return repository.Read();
|
||||
}
|
||||
|
||||
public void Create(string username, string email, string password)
|
||||
{
|
||||
repository.Write(new User(username, email, password));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user