public async Task <FirmwareUpgradeInfo> GetFirmwareUpgrade(int upgradeId)
        {
            FirmwareUpgradeInfo firmwareUpgrade = await FirmwareUpgradeInfoList
                                                  .SingleOrDefaultAsync(dbUpgrade => dbUpgrade.Id == upgradeId);

            if (firmwareUpgrade == null)
            {
                // Can't find the upgrade.
                throw new UpgradeNotFoundException(upgradeId);
            }

            return(firmwareUpgrade);
        }
 public Task <List <FirmwareUpgradeInfo> > GetFirmwareUpgrades()
 {
     return(FirmwareUpgradeInfoList.ToListAsync());
 }