예제 #1
0
        public IActionResult EditBiography()
        {
            var editBiographyViewModel = new EditBiographyViewModel()
            {
                Biography = this.biographyService.GetBiography()
            };

            return(this.View(editBiographyViewModel));
        }
예제 #2
0
        public IActionResult UpdateBiography(EditBiographyViewModel editBiographyViewModel)
        {
            this.HomeService.EditBiography(editBiographyViewModel.Biography);

            return(RedirectToAction("Success", "Home", new { area = "" }));
        }
예제 #3
0
        public IActionResult EditBiography(EditBiographyViewModel editBiographyViewModel)
        {
            editBiographyViewModel.Biography = this.HomeService.GetBiography();

            return(this.View(editBiographyViewModel));
        }