﻿// Copyright (c) 2018 Nikolay Zahariev <zahasoft.com>. Licensed under the MIT License.

namespace Zahasoft.Weblog.Present.Controllers
{
    using System.Web.Mvc;

    public abstract class BaseController : Controller
    {
        protected ActionResult RedirectToError(string message = null)
        {
            ViewBag.errorMessage = message;
            return RedirectToAction("Index", "Error");
        }
    }
}