Example #1
0
        public ActionResult Deletar(Int16 id = 0)
        {
            var model = new DeleteModelView();

            model.Id = id;

            if (id != 0)
            {
                //busca as informações para edição
                // return RedirectToAction("ThankYou", "Account", new { whatever = message });
            }

            return(View(model));
        }
Example #2
0
        public ActionResult Deletar(DeleteModelView model)
        {
            if (!User.Identity.IsAuthenticated)
            {
                return(RedirectToAction("Login", "Account", null));
            }

            if (ModelState.IsValid)
            {
                return(Redirect(Domain.Util.config.UrlSite + model.Control + "/" + model.Act + "/" + model.Id + "/" + model.Id2 + "/" + model.Id3));
            }

            return(View(model));
        }