public ActionResult SaveEditedStandard(NewExtraValueModel m) { var i = Views.GetViewsViewValue(DbUtil.Db, m.ExtraValueTable, m.ExtraValueName); i.value.VisibilityRoles = m.VisibilityRoles; i.value.Codes = m.ConvertToCodes(); i.views.Save(DbUtil.Db); return(View("EditStandard", m)); }
public ActionResult SaveEditedStandard(NewExtraValueModel m) { var i = Views.GetViewsViewValue(DbUtil.Db, m.ExtraValueTable, m.ExtraValueName); i.value.VisibilityRoles = m.VisibilityRoles; i.value.Codes = m.ConvertToCodes(); i.value.Link = Server.HtmlEncode(m.ExtraValueLink); i.views.Save(DbUtil.Db); return(View("ListStandard", new ExtraValueModel(m.Id, m.ExtraValueTable, m.ExtraValueLocation))); }