public IActionResult EditBiography() { var editBiographyViewModel = new EditBiographyViewModel() { Biography = this.biographyService.GetBiography() }; return(this.View(editBiographyViewModel)); }
public IActionResult UpdateBiography(EditBiographyViewModel editBiographyViewModel) { this.HomeService.EditBiography(editBiographyViewModel.Biography); return(RedirectToAction("Success", "Home", new { area = "" })); }
public IActionResult EditBiography(EditBiographyViewModel editBiographyViewModel) { editBiographyViewModel.Biography = this.HomeService.GetBiography(); return(this.View(editBiographyViewModel)); }