Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 public bool Exists(int id)
 {
     return(orderItemRepository.Exists(id));
 }