コード例 #1
0
        public async Task <IActionResult> Post([FromBody] Device device)
        {
            var response = await devicesRepository.Save(device);

            return(Ok(new
            {
                correct = true,
                title = "Mensaje del sistema",
                message = "Dispositivo agregado exitosamente",
                deviceData = response,
                fullStackTrace = "",
            }));
        }