public ActionResult SiteSettingsEdit() { var settings = alertsSvc.GetUserSiteSettings(CfIdentity.UserID); var model = new UpdateSiteSettingsViewModel(); model.InjectFrom(settings); return(View(model)); }
public ActionResult SiteSettingsEdit(UpdateSiteSettingsViewModel m) { var settings = alertsSvc.GetUserSiteSettings(CfIdentity.UserID); settings.InjectFrom(m); alertsSvc.UpdatedUserSiteSettings(settings); return(RedirectToAction("SiteSettings")); }