AzureWebFarm.ControlPanel.Areas.ControlPanel.Controllers.WebSiteController.Edit C# (CSharp) Method

Edit() private method

private Edit ( EditWebSiteViewModel model ) : ActionResult
model EditWebSiteViewModel
return ActionResult
        public ActionResult Edit(EditWebSiteViewModel model)
        {
            var website = _webSiteRepository.RetrieveWebSite(model.Id);
            if (website == null)
                return HttpNotFound();

            if (!ModelState.IsValid)
                return View(model);

            website.Name = model.Name;
            website.Description = model.Description;
            website.EnableCDNChildApplication = model.EnableCDNChildApplication;
            website.EnableTestChildApplication = model.EnableTestChildApplication;
            _webSiteRepository.UpdateWebSite(website);

            return RedirectToAction("Detail", new { area = ControlPanelAreaRegistration.Name, model.Id });
        }

Same methods

WebSiteController::Edit ( Guid id ) : ActionResult