Üzenetküldés frontenden
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user