C# Class _09_PerRouteMHOwnershipSample.Controllers.CustomerOrdersController

Inheritance: ApiController
Afficher le fichier Open project: tugberkugurlu/AdvancedWebAPI

Méthodes publiques

Méthode Description
CustomerOrdersController ( IEntityRepository orderRepository ) : System
GetOrders ( int customerKey ) : IEnumerable
PostOrder ( int customerKey, OrderRequestModel requestModel, HttpRequestMessage request ) : HttpResponseMessage

Private Methods

Méthode Description
DeleteOrder ( int customerKey, int key, HttpRequestMessage request ) : HttpResponseMessage
GetOrder ( int customerKey, int key ) : OrderDto

Method Details

CustomerOrdersController() public méthode

public CustomerOrdersController ( IEntityRepository orderRepository ) : System
orderRepository IEntityRepository
Résultat System

GetOrders() public méthode

public GetOrders ( int customerKey ) : IEnumerable
customerKey int
Résultat IEnumerable

PostOrder() public méthode

public PostOrder ( int customerKey, OrderRequestModel requestModel, HttpRequestMessage request ) : HttpResponseMessage
customerKey int
requestModel _09_PerRouteMHOwnershipSample.Models.RequestModels.OrderRequestModel
request System.Net.Http.HttpRequestMessage
Résultat System.Net.Http.HttpResponseMessage