fix(Profil): Typ von TypeId byte festgelegt

This commit is contained in:
tekh 2025-07-24 16:46:16 +02:00
parent dd5babfdbe
commit b24f518bba
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
using MediatR; using MediatR;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using WorkFlow.API.Attributes; using WorkFlow.API.Attributes;
using WorkFlow.Application.Profiles; using WorkFlow.Application.Profiles;
@ -23,11 +24,11 @@ public class ProfileController : ControllerBase
} }
[HttpGet] [HttpGet]
public IActionResult GetAsync([FromQuery] ReadProfile profileQ) public async Task<IActionResult> GetAsync([FromQuery] ReadProfile profileQ)
{ {
try try
{ {
var profile = _mediator.Send(profileQ); var profile = await _mediator.Send(profileQ);
return profile is null ? NotFound() : Ok(profile); return profile is null ? NotFound() : Ok(profile);
} }
catch (Exception ex) catch (Exception ex)

View File

@ -8,7 +8,7 @@ public class Profile
public int? Id { get; set; } public int? Id { get; set; }
[Column("TYPE_ID")] [Column("TYPE_ID")]
public int? TypeId { get; set; } public byte? TypeId { get; set; }
[Column("CAPTION")] [Column("CAPTION")]
public string? Caption { get; set; } public string? Caption { get; set; }