Esempio n. 1
0
        public IActionResult Post([FromBody] Display display)
        {
            var id = displayService.Post(display);

            _displays.Create(display);
            _displays.Save();
            return(Ok(id));
        }
Esempio n. 2
0
        public IActionResult Post([FromBody] Battery battery)
        {
            var id = batteryService.Post(battery);

            _batteries.Create(battery);
            _batteries.Save();
            return(Ok(id));
        }