예제 #1
0
        // GET: Administrator/Edit/5
        public ActionResult Edit(int id)
        {
            if (id == 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            IBL bl            = new BLImplement();
            var administrator = bl.getAdministrator(id);
            var avm           = new AdministratorViewModel(administrator);

            if (avm == null)
            {
                return(HttpNotFound());
            }
            return(View(avm));
        }