public ViewResult Comments() { logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: Comments - Begin"); List <Comment> lstComments = new List <Comment>(); try { lstComments = dataaccess.GetAllComments(); } catch (Exception ex) { logginghelper.Log(LoggingLevels.Error, "Class: " + classname + " :: Comments" + ex); } logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: Comments - End"); return(View(lstComments)); }