Example #1
0
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var vm = repo.GetDetailsClassViewModel(id.Value);

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