Exemplo n.º 1
0
        public IActionResult DeleteReview(int id)
        {
            try
            {
                bool succes = _reviewLogic.Delete(id);
                if (!succes)
                {
                    return(NotFound());
                }

                return(Ok("Review is delted"));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, "Internal server error"));
            }
        }
Exemplo n.º 2
0
 public int Delete(int id)
 {
     return(_reviewLogic.Delete(id));
 }