summaryrefslogtreecommitdiff
path: root/external/aspnetwebstack/test/System.Web.Http.Integration.Test/ContentNegotiation/ConnegController.cs
blob: 4c794f7e8964fc4783b316f33a2a46908cf2a4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.

namespace System.Web.Http.ContentNegotiation
{
    public class ConnegController : ApiController
    {
        public ConnegItem GetItem(string name = "Fido", int age = 3)
        {
            return new ConnegItem()
            {
                Name = name,
                Age = age
            };
        }

        public ConnegItem PostItem(ConnegItem item)
        {
            return item;
        }
    }
}