コード例 #1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Publisher publisher = publisherManager.Find(x => x.Id == id);

            if (publisher == null)
            {
                return(HttpNotFound());
            }

            return(View(publisher));
        }