diff --git a/src/WorkFlow.API/Controllers/ProfileController.cs b/src/WorkFlow.API/Controllers/ProfileController.cs index 747d9a4..f4cbdce 100644 --- a/src/WorkFlow.API/Controllers/ProfileController.cs +++ b/src/WorkFlow.API/Controllers/ProfileController.cs @@ -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 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) diff --git a/src/WorkFlow.Domain/Entities/Profile.cs b/src/WorkFlow.Domain/Entities/Profile.cs index 09660fe..dc7df36 100644 --- a/src/WorkFlow.Domain/Entities/Profile.cs +++ b/src/WorkFlow.Domain/Entities/Profile.cs @@ -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; }