Example #1
0
        // GET: Inscriptions/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Inscription inscription = this._repository.Get(id);

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

            return(View("CreateEdit", inscription.Map <InscriptionViewModel>()));
        }
Example #2
0
        // GET: Inscriptions/Create
        public ActionResult Create()
        {
            Inscription inscription = new Inscription();

            return(View("CreateEdit", inscription.Map <InscriptionViewModel>()));
        }