Esempio n. 1
0
        //para administrador
        // GET: /Wizard/Aprov/5
        public ActionResult Approv(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Wizard wizard = unitOfWork.WizardRepository.Get(id.Value);

            wizard.Approv();
            unitOfWork.SaveChanges();
            return(Redirect("NotApproved"));
        }