You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
32
external/corert/samples/WebApi/Controllers/ValuesController.cs
vendored
Normal file
32
external/corert/samples/WebApi/Controllers/ValuesController.cs
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
// Licensed to the .NET Foundation under one or more agreements.
|
||||
// The .NET Foundation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace SampleWebApi.Controllers
|
||||
{
|
||||
public class ValuesController
|
||||
{
|
||||
[HttpGet("/")]
|
||||
public string Hello() => "Hello World!";
|
||||
|
||||
// GET api/values
|
||||
[HttpGet("/api/values")]
|
||||
public IEnumerable<string> Get()
|
||||
{
|
||||
return new string[] { "value1", "value2" };
|
||||
}
|
||||
|
||||
// GET api/values/5
|
||||
[HttpGet("/api/values/{id}")]
|
||||
public string Get(int id)
|
||||
{
|
||||
return "value is " + id;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user