/// <summary>
 /// This is to check if OrderItem exists for PUT method
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 private async Task <bool> OrderItemExists(int id)
 {
     return(await _orderItems.Exists(id));
 }
Beispiel #2
0
 public bool Exists(int id)
 {
     return(orderItemRepository.Exists(id));
 }