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 })); }
public void Upsert(RunManuals manuals) { _component.Upsert(manuals); _adjuster.Adjust(manuals); }