コード例 #1
0
        public IActionResult Edited(RunEditViewModel model)
        {
            var manuals = new RunManuals(model.Worldname);

            manuals.YoutubeLink  = model.YoutubeLink;
            manuals.SpeedrunLink = model.SpeedrunLink;
            manuals.RuntimeInMs  = parseRuntime(model.Runtime);

            _manualsWriter.Upsert(manuals);

            return(RedirectToAction("Edit", new { worldname = model.Worldname }));
        }
コード例 #2
0
 public void Upsert(RunManuals manuals)
 {
     _component.Upsert(manuals);
     _adjuster.Adjust(manuals);
 }