예제 #1
0
 public IActionResult EditCountry(int id, Country country)
 {
     if (id != country.Id)
     {
         return(ViewBag.Message = "Invalid Id");
     }
     _db.EditCountry(country);
     return(RedirectToAction(nameof(Country)));
 }