示例#1
0
        //
        // GET: /Sites/Robot_Txt/
        public virtual ActionResult Index()
        {
            Robots_Txt robot_txt = new Robots_Txt(Site);

            var robotStr = robot_txt.Read();

            robot_txt.Body = robotStr;
            return View(robot_txt);
        }
示例#2
0
 public virtual ActionResult RobotsTxt()
 {
     Robots_Txt robotTxt = new Robots_Txt(Site);
     var body = robotTxt.Read();
     return Content(body, "text/plain");
 }