Ejemplo n.º 1
0
        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));
 }
Ejemplo n.º 3
0
 public void DeleteReviewById(int id)
 {
     _reviewInterface.DeleteReviewById(id);
 }