Beispiel #1
0
 public async Task <ActionResult <ProductImage> > DeleteProductImage(int productImageId)
 {
     try
     {
         return(await _productImageRepository.DeleteProductImage(productImageId));
     }
     catch (Exception)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError,
                           "Error deleting data"));
     }
 }
 public ProductImage DeleteProductImage(int productImageId)
 {
     return(_productImageRepository.DeleteProductImage(productImageId));
 }