Example #1
0
        public ActionResult Tags()
        {
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: Tags - Begin");
            List <Tag> _lstTags = null;

            try
            {
                _lstTags      = dataaccess.Tags();
                ViewBag.Title = "Tags";
            }
            catch (Exception ex)
            {
                logginghelper.Log(LoggingLevels.Error, "Class: " + classname + " :: Tags" + ex);
            }
            logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: Tags - Begin");
            return(View(_lstTags));
        }
Example #2
0
 public WidgetViewModel(BlogEngineDAL dataaccess)
 {
     Categories  = dataaccess.Categories();
     Tags        = dataaccess.Tags();
     LatestPosts = dataaccess.Posts(0, 10);
 }