aspnetcore/test/WebSites/ApiExplorerWebSite/Models/OrderDTO.cs

23 lines
635 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. 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;
namespace ApiExplorerWebSite
{
public class OrderDTO
{
[FromServices]
public IOrderRepository Repository { get; set; }
public string CustomerId { get; set; }
[FromHeader(Name = "Referrer")]
public string ReferrerId { get; set; }
public OrderDetailsDTO Details { get; set; }
[FromForm]
public CustomerCommentsDTO Comments { get; set; }
}
}