Exemplo n.º 1
0
        public ActionResult Detail(int id)
        {
            var beneficiary = _beneficiaryService.GetById(id);

            var beneficiaryForm = BeneficiaryForm.Create(beneficiary, new ApplicationUser());

            return(View(beneficiaryForm));
        }
Exemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            var beneficiary     = _beneficiaryService.GetById(id);
            var user            = _userManager.FindById(beneficiary.UserId);
            var beneficiaryForm = BeneficiaryForm.Create(beneficiary, user);

            beneficiaryForm.Theme = AppSettings.Theme;

            return(View(beneficiaryForm));
        }