コード例 #1
0
        public IActionResult EditSeries(int id, [FromBody] EventSeriesModel eventSeriesModel)
        {
            var command = new Commands.EventSeriesCommands.Update(id, eventSeriesModel);

            ServiceActorRefs.CalendarServiceActor.Tell(command);
            return(Ok());
        }
コード例 #2
0
        public IActionResult PostEventSeries([FromBody] EventSeriesModel eventSeriesModel)
        {
            var command = new Commands.EventSeriesCommands.Add(eventSeriesModel);

            ServiceActorRefs.CalendarServiceActor.Tell(command);
            return(Ok());
        }