Example #1
0
        public async Task <ActionResult <Instrument> > AddInstrument([FromBody] Instrument inst)
        {
            Instrument toAdd = Adder.createInstrument(_context, Guid.NewGuid(), inst.Adress, inst.DisplayName); //new Instrument { DisplayName = inst.DisplayName, Adress = inst.Adress, UUID = Guid.NewGuid() };

            //Adder.createInstrument();
            //_context.Instrument.Add(toAdd);
            return(toAdd);
        }