﻿using System.Web.Mvc;
using TestAddedProject.Repositories;

namespace TestAddedProject.Controllers
{
    public class TestController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Detail(int id)
        {
            var item = new TestRepository().GetEntryById(id);

            return View(item);
        }

        public string Contact()
        {
            return "Your added contact page.";
        }
    }
}