Hi @Cenk ,
In asp.net core application, you can use the IActionResult to replace the IHttpActionResult:
public async Task<IActionResult> PurchaseGame(RequestDto game)
{
Then, you can also return BadRequest(), Ok() and Unauthorized().
For the InternalServerError error, you can return a StatusCode, like this:
return StatusCode(StatusCodes.Status500InternalServerError, "Error message");
More detail information, see Controller action return types in ASP.NET Core web API.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion