public async Task <ActionResult> Edit(int id) { CountryDTO country = await _countryManager.GetAsync(id); if (country == null) { return(NotFound("Country doesn't exist")); } return(View(new CountryVM { Id = country.Id, Name = country.Name })); }