public ActionResult <SuccessResponse> Delete(int id) { ActionResult result = null; try { _ratingsService.Delete(id); SuccessResponse resp = new SuccessResponse(); result = Ok200(resp); } catch (Exception ex) { Logger.LogError(ex.ToString()); result = StatusCode(500, new ErrorResponse(ex.Message.ToString())); } return(result); }