26 lines
674 B
C#
26 lines
674 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNet.Mvc;
|
|
using ModelBindingWebSite.Models;
|
|
|
|
namespace ModelBindingWebSite.Controllers
|
|
{
|
|
public class PropertiesController : Controller
|
|
{
|
|
public Company GetCompany(Company c)
|
|
{
|
|
return c;
|
|
}
|
|
|
|
public PersonWithNoProperties GetPerson(PersonWithNoProperties p)
|
|
{
|
|
return p;
|
|
}
|
|
|
|
public ArrayOfPersonWithNoProperties GetPeople(ArrayOfPersonWithNoProperties p)
|
|
{
|
|
return p;
|
|
}
|
|
}
|
|
} |