public async Task <string> Put([FromBody] CreateGCode input) { LoadOptions opt = await _loadOptionsService.Get(input.LoadOptionsId); var load = GCodeLoadHelper.CallLoad(input.FileName, input.FileContent, opt); var sw = new StringWriter(); new XmlSerializer(typeof(GCode.CamBam.CamBam)).Serialize(sw, load.CamBam); return(sw.ToString()); }
public async Task <IEnumerable <string> > Put([FromBody] CreateGCode input) { LoadOptions opt = await _loadOptionsService.Get(input.LoadOptionsId); return(GCodeLoadHelper.CallLoad(input.FileName, input.FileContent, opt).Commands.ToStringList()); }
public async Task <LoadOptions> Get(int id) { return(await _service.Get(id)); }