public IServiceResultWrap PublishGeneralDescription([FromBody] VmPublishingModel model) { return(serviceManager.CallService( () => new ServiceResultWrap() { Data = generalDescriptionService.PublishGeneralDescription(model), }, new Dictionary <Type, string>() { { typeof(string), MessagePublishGeneralDescription }, { typeof(LockException), MessageLockedGeneralDescription }, { typeof(RoleActionException), MessagePublishGeneralDescription }, { typeof(PublishLanguageException), RESTCommonController.MessageNotVisibleLanguage }, { typeof(PublishModifiedExistsException), RESTCommonController.MessagePublishModifiedExists } })); }
public IServiceResultWrap PublishEntity([FromBody] VmPublishingModel model) { return serviceManager.CallService( () => new ServiceResultWrap() { Data = channelService.PublishChannel(model), }, new Dictionary<Type, string>() { { typeof(string), EntityMessagePublished }, { typeof(LockException), MessageLockedChannel }, { typeof(RoleActionException), MessagePublishChannelRole }, { typeof(PublishLanguageException), RESTCommonController.MessageNotVisibleLanguage }, { typeof(PublishModifiedExistsException), RESTCommonController.MessagePublishModifiedExists } }); }
public IServiceResultWrap PublishOrganization([FromBody] VmPublishingModel model) { return(serviceManager.CallService( () => new ServiceResultWrap() { Data = organizationService.PublishOrganization(model) }, new Dictionary <Type, string>() { { typeof(string), MessagePublishOrganization }, { typeof(LockException), MessageLockedOrganization }, { typeof(RoleActionException), MessagePublishOrganizationRole }, { typeof(PublishLanguageException), RESTCommonController.MessageNotVisibleLanguage }, { typeof(PublishModifiedExistsException), RESTCommonController.MessagePublishModifiedExists }, { typeof(OrganizationCannotPublishDeletedRootException), MessageOrganizationCannotPublishDeletedRoot } })); }