Remix.run Logo
malakai521 6 months ago

`var post = await _postService.getById(id);`

the F# equivalent is

`let! post = _postService.getById id`

alternatex 6 months ago | parent [-]

You're missing the task {} block

neonsunset 6 months ago | parent | next [-]

This assumes the context is already a task computation expression, which is what you'd have in asynchronous code.

sWW26 6 months ago | parent | prev [-]

and the C# is missing the `async Task` boilerplate