コード例 #1
0
        public RobotsTxt GetRobots()
        {
            var model = new RobotsTxt {
                Text = File.ReadAllText(PathToFile)
            };

            return(model);
        }
コード例 #2
0
        public bool UpdateRobots(RobotsTxt model)
        {
            File.WriteAllText(PathToFile, model.Text);

            return(true);
        }
コード例 #3
0
 public IActionResult UpdateRobots([FromBody] RobotsTxt model)
 {
     this._seoService.UpdateRobots(model);
     return(Ok(true));
 }