Beispiel #1
0
        protected async Task Delete(int productId)
        {
            await ProductDataService.Delete(productId);

            StatusClass = "alert-success";
            Message     = "Deleted successfully";
        }
Beispiel #2
0
 /// <summary>
 /// Deletes the specified entity.
 /// </summary>
 /// <param name="pr">The product entity.</param>
 public override void Delete(Product pr)
 {
     _productDataService.Delete(pr);
 }