示例#1
0
        public async Task <IActionResult> Delete()
        {
            IEnumerable <Review> reviews = reviewManager.GetAllReviews();

            foreach (Review review in reviews.ToList())
            {
                await reviewManager.Delete(review.Id);
            }

            return(NoContent());
        }
示例#2
0
 public void Delete(int id)
 {
     _reviewManager.Delete(id);
 }
示例#3
0
 public void Delete(DeleteReview input)
 {
     _reviewManager.Delete(input.Id);
 }