public async Task <IActionResult> Delete() { IEnumerable <Review> reviews = reviewManager.GetAllReviews(); foreach (Review review in reviews.ToList()) { await reviewManager.Delete(review.Id); } return(NoContent()); }
public void Delete(int id) { _reviewManager.Delete(id); }
public void Delete(DeleteReview input) { _reviewManager.Delete(input.Id); }