コード例 #1
0
 private void ValidateAddItemCart(CartDto cart)
 {
     if (cart == null)
     {
         throw new Exception(ResourceConstantsExceptions.NotFound("Cart"));
     }
 }
コード例 #2
0
 private void ValidateAddItemProduct(ProductDto product)
 {
     if (product == null)
     {
         throw new Exception(ResourceConstantsExceptions.NotFound("Product"));
     }
 }
コード例 #3
0
 private void ValidateGetCategory(CategoryDto category)
 {
     if (category == null)
     {
         throw new Exception(ResourceConstantsExceptions.NotFound("Category"));
     }
 }