/// <summary>
        /// Creates a Orderline
        /// </summary>
        /// <param name="orderLine"></param>
        /// <returns></returns>
        public HttpResponseMessage Post(OrderLineDto orderLineDto)
        {
            try
            {
                var orderLine = new OrderLineConverter().Convert(orderLineDto);
                facade.GetOrderLineRepository().Add(orderLine);

                var response = Request.CreateResponse<OrderLineDto>(HttpStatusCode.Created, orderLineDto);
                var uri = Url.Link("GetOrderLineById", new { orderLine.Id });
                response.Headers.Location = new Uri(uri);
                return response;
            }
            catch (Exception)
            {
                var response = new HttpResponseMessage(HttpStatusCode.Conflict)
                {
                    Content = new StringContent("Could not add a OrderLine to the database")
                };
                throw new HttpResponseException(response);
            }
        }
 /// <summary>
 /// Updates a Orderline
 /// </summary>
 /// <param name="orderLine"></param>
 /// <returns></returns>
 public HttpResponseMessage Put(OrderLineDto orderLineDto)
 {
     try
     {
         OrderLine orderLine = new OrderLineConverter().Convert(orderLineDto);
         facade.GetOrderLineRepository().Edit(orderLine);
         var response = Request.CreateResponse<OrderLineDto>(HttpStatusCode.OK, orderLineDto);
         var uri = Url.Link("GetOrderLineById", new { orderLine.Id });
         response.Headers.Location = new Uri(uri);
         return response;
     }
     catch (Exception)
     {
         var response = new HttpResponseMessage(HttpStatusCode.Conflict)
         {
             Content = new StringContent("No matching orderLine")
         };
         throw new HttpResponseException(response);
     }
 }