public float AverageWordsPerPost() { List <PostDO> postList = null; List <PostPO> displayList = null; float averageWords = 0; try { //gets a list of posts to count the words in the content of all posts postList = _postDataAccess.ViewAllPosts(); displayList = PostMapper.ListDOToPO(postList); List <PostBO> ListToBofromPo = PostMapper.ListPOToBO(displayList); //sets the number of words in the posts to a variable averageWords = _ThreadBLL.AverageWordsPerPost(ListToBofromPo); } catch (Exception ex) { Logger.Log("Fatal", ex.TargetSite.ToString(), ex.Message, ex.StackTrace); } return(averageWords); }