/// <summary> /// Modifies the message types. /// </summary> /// <param name="messageTypesEntity">The message types entity.</param> public void ModifyMessageTypes(MessageTypesEntity messageTypesEntity) { if (!IdentitySpec.Instance.IsSatisfiedBy(messageTypesEntity.Identification)) return; SaveMessageTypes(messageTypesEntity); }
/// <summary> /// Saves the message types. /// </summary> /// <param name="messageTypesEntity">The message types entity.</param> private void SaveMessageTypes(MessageTypesEntity messageTypesEntity) { var repository = GetReopsitory(messageTypesEntity); var serviceInfo = GetServiceInfo(messageTypesEntity.Identification, repository); UpdateEntity(serviceInfo, messageTypesEntity, (s => s.InputTypes = messageTypesEntity.MessageTypes)); Save(serviceInfo, repository, (bd => bd.SetValue(be => be.InputTypes, serviceInfo.InputTypes))); }