示例#1
0
        // GET: meioPropagacaos/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MeioPropagacaoViewModel meioPropagacao = _meioPropagacaoAppService.ObterPorId(id.Value);

            if (meioPropagacao == null)
            {
                return(HttpNotFound());
            }
            return(View(meioPropagacao));
        }
        // GET: meioPropagacaos/Details/5
        public ActionResult Details(int?id)
        {
            if (Session["usuario"] == null)
            {
                return(RedirectToAction("Login", "Usuarios"));
            }

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MeioPropagacaoViewModel meioPropagacao = _meioPropagacaoAppService.ObterPorId(id.Value);

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