This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This document now exists on the official ASP.NET core docs page.
open System | |
open Microsoft.AspNetCore.Builder | |
open Microsoft.AspNetCore.Http | |
open Microsoft.AspNetCore.Routing | |
type Item = { Id: int32; Name: string; Price: decimal } | |
let rnd = Random() | |
let getProducts () = | |
[ for _ in 1..3 do { Id = rnd.Next 100; Name = "Blueberry"; Price = 10m } ] |