Ejemplo n.º 1
0
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var vm = repo.GetEditClassViewModel(id.Value);

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