public async Task <IHttpActionResult> Get(string name)
        {
            Recovery recovery = await _repo.Get(name);

            if (recovery != null)
            {
                ShowRecoveryModel viewModel = new ShowRecoveryModel()
                {
                    Id       = recovery.Id,
                    Name     = recovery.Name,
                    Version  = recovery.Version,
                    Download = recovery.Download,
                };
                if (recovery.Device != null)
                {
                    viewModel.Device = new
                    {
                        Id           = recovery.Device.Id,
                        Name         = recovery.Device.Name,
                        Manufacturer = recovery.Device.Manufacturer,
                        Year         = recovery.Device.Year,
                        Image        = recovery.Device.Image
                    };
                }
                return(Ok(viewModel));
            }
            return(BadRequest());
        }
        public List <ShowRecoveryModel> Get()
        {
            List <ShowRecoveryModel> viewModels = new List <ShowRecoveryModel>();

            foreach (var recovery in _repo.Get())
            {
                ShowRecoveryModel viewModel = new ShowRecoveryModel()
                {
                    Id       = recovery.Id,
                    Name     = recovery.Name,
                    Version  = recovery.Version,
                    Download = recovery.Download,
                };
                if (recovery.Device != null)
                {
                    viewModel.Device = new
                    {
                        Id           = recovery.Device.Id,
                        Name         = recovery.Device.Name,
                        Manufacturer = recovery.Device.Manufacturer,
                        Year         = recovery.Device.Year,
                        Image        = recovery.Device.Image
                    };
                }
                viewModels.Add(viewModel);
            }
            return(viewModels);
        }