C# Class _09_PerRouteMHOwnershipSample.Controllers.CustomerOrdersController

Inheritance: ApiController
Mostrar archivo Open project: tugberkugurlu/AdvancedWebAPI

Public Methods

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

Private Methods

Method Description
DeleteOrder ( int customerKey, int key, HttpRequestMessage request ) : HttpResponseMessage
GetOrder ( int customerKey, int key ) : OrderDto

Method Details

CustomerOrdersController() public method

public CustomerOrdersController ( IEntityRepository orderRepository ) : System
orderRepository IEntityRepository
return System

GetOrders() public method

public GetOrders ( int customerKey ) : IEnumerable
customerKey int
return IEnumerable

PostOrder() public method

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