// POST: Countries/Edit public ActionResult Edit(Country pais) { var cp = new CountryProcess(); cp.Edit(pais); return(RedirectToAction("Index")); }
// GET: Countries/Country public ActionResult Index() { var cp = new CountryProcess(); var lista = cp.SelectList(); return(View(lista)); }
// GET: Countries/Edit public ActionResult Edit(int id) { var cp = new CountryProcess(); var pais = cp.Find(id); return(View(pais)); }
// POST: Countries/Create public ActionResult Create(Country pais) { var cp = new CountryProcess(); cp.Insert(pais); return(RedirectToAction("Index")); }
// GET: Countries/Delete public ActionResult Delete(int id) { var cp = new CountryProcess(); cp.Delete(id); return(RedirectToAction("Index")); }
// GET: Client/Create public ActionResult Create() { var country = new CountryProcess().SelectList(); ViewBag.Country = new SelectList(country, "Id", "Name"); return(View()); }
public ActionResult Create() { var countryProcess = new CountryProcess(); var countries = countryProcess.SelectList(); ViewBag.countries = countries; return(View()); }
// GET: Clients/Create public ActionResult Create() { var cp = new CountryProcess(); var lista = cp.SelectList(); ViewData["Country"] = lista; return(View()); }
// GET: Client/Edit/5 public ActionResult Edit(int id) { var country = new CountryProcess().SelectList(); ViewBag.Country = new SelectList(country, "Id", "Name", id); var cp = new ClientProcess(); return(View(cp.findClient(id))); }
// GET: Clients/Create public ActionResult Create(string id, string mail) { ViewBag.Id = id; ViewBag.Mail = mail; var cp = new CountryProcess(); var lista = cp.SelectList(); ViewData["Country"] = lista; return(View()); }
// 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: Clients/Edit public ActionResult Edit(int id) { var cp = new ClientProcess(); var cat = cp.Find(id); var cp2 = new CountryProcess(); var lista = cp2.SelectList(); ViewData["Country"] = lista; return(View(cat)); }
// GET: Clients/Client public ActionResult Index() { var cp = new ClientProcess(); var lista = cp.SelectList(); var cp2 = new CountryProcess(); var listaCountry = cp2.SelectList(); ViewData["Country"] = listaCountry; return(View(lista)); }
// 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: Dealer/Edit/5 public ActionResult Edit(int id) { var category = new CategoryProcess().SelectList(); var country = new CountryProcess().SelectList(); ViewBag.Category = new SelectList(category, "Id", "Name", id); ViewBag.Country = new SelectList(country, "Id", "Name", id); var cp = new DealerProcess(); return(View(cp.findDealer(id))); }
// // GET: /Students/Student/ public ActionResult Index() { var studentProcess = new StudentProcess(); var country = new CountryProcess(); var lista = studentProcess.SelectList(); var countries = country.SelectList(); foreach (var l in lista) { l.Pais = countries.Find(p => p.Id == l.CountryId); } return(View(lista)); }
public void CountryListRemove() { _cacheServices.Remove(DataCacheSetting.Country.Key); var lista = _cacheServices.GetOrAdd( DataCacheSetting.Country.Key, () => { var cp = new CountryProcess(); return(cp.SelectList()); }, DataCacheSetting.Country.SlidingExpiration); }
// GET: Dealers/Create public ActionResult Create() { var cop = new CountryProcess(); var listaCountry = cop.SelectList(); ViewData["Country"] = listaCountry; var cap = new CategoryProcess(); var listaCategory = cap.SelectList(); ViewData["Category"] = listaCategory; return(View()); }
public ActionResult Edit(Country country) { try { var cp = new CountryProcess(); cp.editCountry(country); DataCache.Instance.CountryListRemove(); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Delete(int id, Country country) { try { var cp = new CountryProcess(); cp.deleteCountry(id); DataCache.Instance.CountryListRemove(); return(RedirectToAction("Index")); } catch { return(View()); } }
// GET: Clients/Client public ActionResult Index() { var cp = new ClientProcess(); var lista = cp.SelectList(); //var cop = new CountryProcess(); //var descCountry = cop.Find(client.CountryId); //ViewData["Country"] = descCountry.Name; var cop = new CountryProcess(); var listaCountries = cop.SelectList(); ViewData["Country"] = listaCountries; return(View(lista)); }
// GET: Dealers/Edit public ActionResult Edit(int id) { var dp = new DealerProcess(); var dealer = dp.Find(id); var cp = new CountryProcess(); var listaCountry = cp.SelectList(); ViewData["Country"] = listaCountry; var cp2 = new CategoryProcess(); var listaCategory = cp2.SelectList(); ViewData["Category"] = listaCategory; return(View(dealer)); }
// 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: Dealers/Dealer public ActionResult Index() { var dp = new DealerProcess(); var lista = dp.SelectList(); var cp = new CountryProcess(); var listaCountry = cp.SelectList(); ViewData["Country"] = listaCountry; var cp2 = new CategoryProcess(); var listaCategory = cp2.SelectList(); ViewData["Category"] = listaCategory; return(View(lista)); }
// GET: Country/Delete/5 public ActionResult Delete(int id) { var cp = new CountryProcess(); return(View(cp.findCountry(id))); }