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,8 @@
namespace Sandbox.Models.ViewModels;
public class ServiceResponse<T>
{
public T? Data { get; set; }
public bool Success { get; set; } = true;
public string Message { get; set; } = string.Empty;
}

View File

@@ -0,0 +1,10 @@
namespace Sandbox.Models.ViewModels;
public class UserRegister
{
public string Email { get; set; } = string.Empty;
//[Required, StringLength(100, MinimumLength = 5)]
public string Password { get; set; } = string.Empty;
//[Compare("Password", ErrorMessage = "The password do not match.")]
public string ConfirmPassword { get; set; } = string.Empty;
}