コード例 #1
0
        // GET: Cargos/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest));
            }

            var cargo = CapaNegocio.GetCargos(id.Value);

            return(View(cargo));
        }
コード例 #2
0
        // GET: Cargos/Edit/5
        public ActionResult Edit(int id)
        {
            var cargo = CapaNegocio.GetCargos(id);

            return(View(cargo));
        }