Exemple #1
0
        // GET: Ciudad

        public ActionResult Index()
        {
            CargoController cont = new CargoController();
            List <Cargo>    list = cont.getAllCargos();

            return(View(list));
        }
Exemple #2
0
        public ActionResult CheckDelete(int id)
        {
            CargoController cont = new CargoController();

            cont.DeleteData(id);
            return(RedirectToAction("Index"));
        }
Exemple #3
0
        // GET: Ciudad/Edit/5
        public ActionResult Update(int id)
        {
            CargoController cont = new CargoController();

            return(View(cont.getAllCargos().Find(model => model.id_cargo == id)));
        }