public ActionResult Delete(Guid id) { var result = _productApplication.Delete(id); if (result) { this.AddToastMessage("", "Product deleted with success.", ToastType.Success); } else { this.AddToastMessage("", "Error while deleting Product.", ToastType.Error); } return(RedirectToAction("Index")); }