FluentResult <T>(FluentResults.Result <T> result) { if (result.IsSuccess) { return(Ok(value: result)); } else { return(BadRequest(error: result.ToResult())); } }