using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace r12Controller.Controllers
{
    public class BasicController : IController
    {

        public void Execute(RequestContext requestContext)
        {

            string controller = (string)requestContext.RouteData.Values["controller"];
            string action = (string)requestContext.RouteData.Values["action"];

            requestContext.HttpContext.Response.Write(
                string.Format("Kontroler: {0}, Akcja: {1}", controller, action));
        }
    } 

}