HomeController.cs
    
    
    
    
    
        Home
            /
web-map                    /
Controllers                    /
                    HomeController.cs
    
    
            
            using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace web_map.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult FAQ()
        {
            ViewBag.Message = "FAQ page.";
            return View();
        }
        public ActionResult GetDoc(string fileName)
        {
            string path = Server.MapPath("~/App_Data") + "/html/index.html";
            System.IO.FileInfo file = new System.IO.FileInfo(path);
            if (file.Exists)
                return File(file.FullName, "text/plain", file.Name);
            return Content("");
        }
    }
}