mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Add domain project and update references
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Repository.Core.Entities;
|
||||
using Domain.Core.Entities;
|
||||
using Repository.Core.Repositories.Auth;
|
||||
using Service.Core.Password;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Repository.Core.Entities;
|
||||
using Domain.Core.Entities;
|
||||
|
||||
namespace Service.Core.Auth;
|
||||
|
||||
@@ -6,4 +6,4 @@ public interface IAuthService
|
||||
{
|
||||
Task<UserAccount> RegisterAsync(UserAccount userAccount, string password);
|
||||
Task<UserAccount?> LoginAsync(string username, string password);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Domain\Domain.Core\Domain.Core.csproj" />
|
||||
<ProjectReference Include="..\..\Repository\Repository.Core\Repository.Core.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Repository.Core.Entities;
|
||||
using Domain.Core.Entities;
|
||||
|
||||
namespace Service.Core.User;
|
||||
|
||||
@@ -8,4 +8,4 @@ public interface IUserService
|
||||
Task<UserAccount?> GetByIdAsync(Guid id);
|
||||
|
||||
Task UpdateAsync(UserAccount userAccount);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Repository.Core.Entities;
|
||||
using Domain.Core.Entities;
|
||||
using Repository.Core.Repositories.UserAccount;
|
||||
|
||||
namespace Service.Core.User;
|
||||
@@ -19,4 +19,4 @@ public class UserService(IUserAccountRepository repository) : IUserService
|
||||
{
|
||||
await repository.UpdateAsync(userAccount);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user