Üzenetküldés frontenden

This commit is contained in:
2025-04-07 17:05:40 +02:00
parent a3be387ee1
commit b02fb58f2e
14 changed files with 338 additions and 70 deletions
@@ -21,11 +21,11 @@ namespace WorkFlowCheck.MAUI.Services
public class UserService : BaseService, IUserService
{
public UserDTO? CurrentUser { get; private set; }
public UserService(HttpClient httpClient, IConfiguration configuration, AppDbContext dbContext, IMapper mapper) : base(httpClient, configuration, dbContext, mapper)
{
}
public async Task<ApiResponseDTO<UserDTO>> GetUserAsync(int id)
{
try
@@ -187,11 +187,11 @@ namespace WorkFlowCheck.MAUI.Services
}
return retVal;
}
public void SetCurrentUser(UserDTO user)
{
CurrentUser = user;
}
public UserDTO? GetCurrentUser() => CurrentUser;
}
}