public async Task<IActionResult> PostQueuePrimaryInsured([FromRoute]string policyNumber, [FromBody]Queue<FormRequest> body) {
HttpStatusCode result = _service.DoSomething(result);
return result;
}
How do I make it return the HttpStatusCode result? I can't figure out the correct syntax. I can have it return Ok(), NotFound(), etc. but I don't want a large if-else block checking for each status code.