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

RelPolicial() public method

public RelPolicial ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult RelPolicial()
        {
            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();
            }
        }