Пример #1
0
        // GET: TipoSetores/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var tipoSetor = _tipoSetorAppService.ObterPorId(id.Value);

            if (tipoSetor == null)
            {
                return(HttpNotFound());
            }
            return(View(tipoSetor));
        }
Пример #2
0
        // GET: TipoSetores/Details/5
        public ActionResult Details(int?id)
        {
            if (Session["usuario"] == null)
            {
                return(RedirectToAction("Login", "Usuarios"));
            }

            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var tipoSetor = _tipoSetorAppService.ObterPorId(id.Value);

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