public Results DeleteAComment(int id) { try { var response = comments.DeleteAComment(id); results.Code = 0; results.ErrorMessage = string.Empty; } catch (Exception ex) { logger.LogError(ex.Message); results.Code = 1; results.ErrorMessage = ex.Message; } return(results); }