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

            var dpt = CapaNegocio.GetDepartamentos(id.Value);

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

            return(View(dpt));
        }