Add register page, associated view model and successfully call service that just sends back received data

This commit is contained in:
2026-01-26 21:53:09 +01:00
parent f743332a1e
commit 6c77fabe47
9 changed files with 116 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
using Sandbox.Models.ViewModels;
namespace Sandbox.Services.AuthService;
public class AuthService : IAuthService
{
public async Task<ServiceResponse<int>> Register(string userName, string password)
{
return new ServiceResponse<int>
{
Data = 1,
Message = $"Got register request with user name {userName}",
Success = true
};
}
}

View File

@@ -0,0 +1,8 @@
using Sandbox.Models.ViewModels;
namespace Sandbox.Services.AuthService;
public interface IAuthService
{
Task<ServiceResponse<int>> Register(string userName, string password);
}