private void UpdateCatalog(webModel.Catalog catalog) { var moduleCatalog = catalog.ToCoreModel(); CheckCurrentUserHasPermissionForObjects(CatalogPredefinedPermissions.Update, catalog); _catalogService.Update(new[] { moduleCatalog }); }
public IHttpActionResult Create(webModel.Catalog catalog) { var newCatalog = _catalogService.Create(catalog.ToCoreModel()); var retVal = newCatalog.ToWebModel(); //Need for UI permission checks retVal.SecurityScopes = GetObjectPermissionScopeStrings(newCatalog); return(Ok(retVal)); }