public MyModule() { Get["/customers/{customerid}"] = _ => { var customers = new[] { new Customer { Id = 123, Name = "Acme Inc" }, new Customer { Id = 456, Name = "Lazer Sharks" } }; return Response.AsJson(customers); }; Get["/customers/{customerid}"] = _ => { var customer = new Customer { Id = 123, Name = "Acme Inc" }; return Response.AsJson(customer); }; }
partial void DeleteCustomer(Customer instance);
partial void UpdateCustomer(Customer instance);
partial void InsertCustomer(Customer instance);