public ActionResult Edit(int id, FormCollection collection) { if (GetAuthorization()) { try { Country country = _countryService.GetById(id); UpdateModel(country); _countryService.SaveChanges(); return(RedirectToAction("Index")); } catch { InitializeViews(id); return(View(_countryViewModel)); } } else { return(RedirectToLogOn()); } }