Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 3
0
 public async Task <LoadOptions> Get(int id)
 {
     return(await _service.Get(id));
 }