private PluginProfileErrorCollection UpdateInternal(UpdateMashupCommandArg commandArg)
{
var errors = commandArg.ValidateUpdate(ManagerProfile);
if (errors.Any())
{
return errors;
}
CompleteWithNotChangedOriginFiles(commandArg);
var saveErrors = MashupScriptStorageOperations.Save(_scriptStorage, commandArg);
if (saveErrors.Any())
{
return saveErrors;
}
_bus.Send(commandArg.CreatePluginMashupMessage());
_log.InfoFormat("Update mashup commnad sent to TP (Mashup '{0}' for account '{1}')", commandArg.Name, _context.AccountName.Value);
return new PluginProfileErrorCollection();
}