示例#1
0
        public ActionResult RemoveSponsor(int?id)
        {
            int sid = 0;

            if (id.HasValue)
            {
                var meta = SortMetaDataObject.GetSortMetaData(id.Value);
                if (meta != null)
                {
                    sid = meta.SortMainId;
                    if (SortMainObject.CheckUserHasWriteAccess(sid))
                    {
                        meta.Delete();
                    }
                }
            }

            return(PartialView("Partials/_sponsorOrgList", SortMetaDataObject.GetSortMetaDatas(sid, MetaDataTypeEnum.SponsoringOrgs)));
        }
示例#2
0
        public ActionResult RemoveCoreCapabilities(int?id)
        {
            int mid = 0;

            if (id.HasValue)
            {
                var meta = SortMetaDataObject.GetSortMetaData(id.Value);
                if (meta != null)
                {
                    mid = meta.SortMainId;
                    if (SortMainObject.CheckUserHasWriteAccess(mid))
                    {
                        meta.Delete();
                    }
                }
            }

            return(PartialView("Partials/_coreCapabilitiesList", SortMetaDataObject.GetSortMetaDatas(mid, MetaDataTypeEnum.CoreCapabilities)));
        }