// GET: Countries/Edit public ActionResult Edit(int id) { var cp = new CountryProcess(); var pais = cp.Find(id); return(View(pais)); }
// GET: Clients/Details public ActionResult Details(int id) { var cp = new ClientProcess(); var client = cp.Find(id); var cp2 = new CountryProcess(); var CountryName = cp2.Find(client.CountryId); ViewData["Country"] = CountryName.Name; return(View(client)); }
// GET: Clients/Details public ActionResult Details(int id) { var cp = new ClientProcess(); var client = cp.Find(id); var cop = new CountryProcess(); var descCountry = cop.Find(client.CountryId); ViewData["Country"] = descCountry.Name; return(View(client)); }
// GET: Dealers/Details public ActionResult Details(int id) { var dp = new DealerProcess(); var dealer = dp.Find(id); var cp = new CountryProcess(); var nameCountry = cp.Find(dealer.CountryId); ViewData["Country"] = nameCountry.Name; var cp2 = new CategoryProcess(); var nameCategory = cp2.Find(dealer.CategoryId); ViewData["Category"] = nameCategory.Name; return(View(dealer)); }
// // GET: /Country/Country/Details/5 public ActionResult Details(int id) { var resp = countryProcess.Find(id); return(View(resp)); }