Add files to have a simple EditForm and reproduce POST issue (asks for FormName attribute)
This commit is contained in:
16
Services/AuthService/AuthService.cs
Normal file
16
Services/AuthService/AuthService.cs
Normal 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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user