public ActionResult Detail(int id) { var beneficiary = _beneficiaryService.GetById(id); var beneficiaryForm = BeneficiaryForm.Create(beneficiary, new ApplicationUser()); return(View(beneficiaryForm)); }
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)); }