示例#1
0
 public async Task <IActionResult> GetById(int id)
 {
     try
     {
         return(Ok(await _devicesRepository.GetById(id)));
     }
     catch (InvalidDeviceException)
     {
         return(NotFound());
     }
 }
        public async Task <IActionResult> Get(string partitionKey, string rowKey)
        {
            var response = await devicesRepository.GetById(partitionKey, rowKey);

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