public async Task <ActionResult <object> > Delete(IdObj idOb) { var result = await _reviewService.DeleteReview(idOb.Id); return(result); }
public void DeleteReview_ReviewNotExistis_Exception() { ExceptionAssert.IsThrowing(new ArgumentException("Review with key '0' does not exists."), () => { m_target.DeleteReview(0); }); }
public IActionResult DeleteReview(DeleteReviewViewModel model) { reviewService.DeleteReview(model.ReviewId); return(Redirect(Url.Action("AllReviews", "YourBooks"))); }