public async Task <IActionResult> DeleteReviewById(Guid id) { try { if (id != null) { dynamic deleteById = await _review.DeleteReviewById(id); if (deleteById.Success == false) { return(NotFound(deleteById)); } return(Ok()); } return(BadRequest("Review Id cannot be null")); } catch (Exception ex) { throw; } }
public bool DeleteReviewById(int Id) { return(reviewInterface.DeleteReviewById(Id)); }
public void DeleteReviewById(int id) { _reviewInterface.DeleteReviewById(id); }