// PUT /api/country/:id
        public async Task <IHttpActionResult> Put(int id, [FromBody] CountryViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            using (var db = new CountryRepository())
            {
                var country = await db.FindCountry(id);

                country.Continent = model.Continent;
                country.Name      = model.Name;

                await db.EditCountry(country);
            }

            return(Ok());
        }