Beispiel #1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Author author = authorManager.Find(x => x.Id == id);

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

            return(View(author));
        }