Exemple #1
0
        // GET: Works/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Work work = _workService.Find(id);

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