Brato.UserInterface.Controllers.RelatorioController.RelGerencial C# (CSharp) Method

RelGerencial() public method

public RelGerencial ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult RelGerencial()
        {
            var policial = RulesManager.CreateByEntity<PolicialEntity>().FindAll(p => p.Matricula == User.Identity.Name && p.Status == "A").FirstOrDefault();
             if (policial == null)
                 return RedirectToAction("Login", "Acesso");
             else
             {
                 return View();
             }
        }