a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
1.3 KiB
C#
31 lines
1.3 KiB
C#
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace System.Web.Http.ApiExplorer
|
|
{
|
|
public class OverloadsController : ApiController
|
|
{
|
|
public Person Get(int id) { return null; }
|
|
public List<Person> Get() { return null; }
|
|
public List<Person> Get(string name) { return null; }
|
|
public Person GetPersonByNameAndId(string name, int id) { return null; }
|
|
public Person GetPersonByNameAndAge(string name, int age) { return null; }
|
|
public Person GetPersonByNameAgeAndSsn(string name, int age, int ssn) { return null; }
|
|
public Person GetPersonByNameIdAndSsn(string name, int id, int ssn) { return null; }
|
|
public Person GetPersonByNameAndSsn(string name, int ssn) { return null; }
|
|
public Person Post(Person Person) { return null; }
|
|
public Person ActionDefaultedToPost(string name, int age) { return null; }
|
|
public void Delete(int id, string name = "Default Name") { }
|
|
public void Delete(int id, string name, int age) { }
|
|
|
|
public class Person
|
|
{
|
|
public string Name { get; set; }
|
|
public int ID { get; set; }
|
|
public int SSN { get; set; }
|
|
public int Age { get; set; }
|
|
}
|
|
}
|
|
}
|