public Results AddAComment(Comments comment) { try { results.Result = comments.AddAComment(comment); results.Code = 0; results.ErrorMessage = string.Empty; } catch (Exception ex) { logger.LogError(ex.Message); results.Code = 1; results.ErrorMessage = ex.Message; } return(results); }