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 });
}