示例#1
0
        // GET: Countries/Edit
        public ActionResult Edit(int id)
        {
            var cp   = new CountryProcess();
            var pais = cp.Find(id);

            return(View(pais));
        }
示例#2
0
        // 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));
        }
示例#3
0
        // 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));
        }
示例#4
0
        // 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));
        }