19 lines
351 B
C#
19 lines
351 B
C#
|
|
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));
|
|||
|
|
}
|
|||
|
|
}
|