This commit is contained in:
mmrbnjd
2025-08-18 01:05:04 +03:30
parent a10fbeab62
commit 7ce8812098
4 changed files with 259 additions and 2 deletions

View File

@@ -174,7 +174,7 @@ namespace Hushian.WebApi.Controllers.v1
string strUserID = User.Claims.Where(w => w.Type == CustomClaimTypes.Uid).Select(s => s.Value).First();
dto.userId = Convert.ToInt32(strUserID);
var response = await _aIService.NewRequest(dto);
return response.Success ? Ok(response):BadRequest(response.Errors);
return response.Success ? Ok(response.Value):BadRequest(response.Errors);
}
[HttpGet("ai/CurrentResponse/{companyID}")]
[Authorize(Roles = "User")]