Beispiel #1
0
        public IAggregate Handle(ChangeChart command)
        {
            var aggregate = _domainRepository.GetById <ProfileAggregate>(command.Id);

            aggregate.ChangeChart(command.ChartId, command.Base64Image);

            return(aggregate);
        }
Beispiel #2
0
        public void ChangeChart([FromUri] Guid profileId, [FromBody] ChangeChart command)
        {
            var application = ApplicationManager.BuildApplication();

            application.ExecuteCommand(new ChangeChart(profileId, Guid.Empty, command.ChartId, command.Base64Image));
        }