Mapper NETMAUI-ba

This commit is contained in:
Iván Szabó
2025-02-06 16:06:09 +01:00
parent b233347a7d
commit ac80a8a9bb
6 changed files with 39 additions and 11 deletions
@@ -11,13 +11,14 @@ using WorkFlowCheck.Common.DTO;
using System.Text.Json.Serialization;
using Newtonsoft.Json;
using WorkFlowCheck.MAUI.DataLayer;
using AutoMapper;
namespace WorkFlowCheck.MAUI.Services
{
public class UserService : BaseService, IUserService
{
public UserDTO? CurrentUser { get; private set; }
public UserService(HttpClient httpClient, IConfiguration configuration, AppDbContext dbContext) : base(httpClient, configuration, dbContext)
public UserService(HttpClient httpClient, IConfiguration configuration, AppDbContext dbContext, IMapper mapper) : base(httpClient, configuration, dbContext, mapper)
{
}
public async Task<ApiResponseDTO<UserDTO>> GetUserAsync()