public Results GetAnArticle(int id) { try { results.Result = articles.GetArticleAndTags(id); results.Code = 0; results.ErrorMessage = string.Empty; } catch (Exception ex) { logger.LogError(ex.Message); results.Code = 1; results.ErrorMessage = ex.Message; } return(results); }