fix(Profil): Typ von TypeId byte festgelegt
This commit is contained in:
parent
dd5babfdbe
commit
b24f518bba
@ -1,6 +1,7 @@
|
||||
using MediatR;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Threading.Tasks;
|
||||
using WorkFlow.API.Attributes;
|
||||
using WorkFlow.Application.Profiles;
|
||||
|
||||
@ -23,11 +24,11 @@ public class ProfileController : ControllerBase
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult GetAsync([FromQuery] ReadProfile profileQ)
|
||||
public async Task<IActionResult> GetAsync([FromQuery] ReadProfile profileQ)
|
||||
{
|
||||
try
|
||||
{
|
||||
var profile = _mediator.Send(profileQ);
|
||||
var profile = await _mediator.Send(profileQ);
|
||||
return profile is null ? NotFound() : Ok(profile);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@ -8,7 +8,7 @@ public class Profile
|
||||
public int? Id { get; set; }
|
||||
|
||||
[Column("TYPE_ID")]
|
||||
public int? TypeId { get; set; }
|
||||
public byte? TypeId { get; set; }
|
||||
|
||||
[Column("CAPTION")]
|
||||
public string? Caption { get; set; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user