Agribusiness.Web.Controllers.PersonController.Profile C# (CSharp) Method

Profile() private method

private Profile ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult
        public ActionResult Profile(int id)
        {
            var person = _personRepository.GetNullableById(id);

            if (person == null)
            {
                Message = "Could not locate person.";
                return this.RedirectToAction(a => a.SiteList());
            }

            var displayPerson = _personService.GetDisplayPerson(person, Site);
            return View(displayPerson);
        }