public void Post([FromBody] EventsDto dto) { var serializer = SerializerFactory.GetSerializer <GameEvent>(dto.SerializerType); var events = serializer.Deserialize(dto.Data); eventStorage.SaveAll(events); }
public void Post([FromBody] EventsDto dto) { var serializer = SerializerFactory.GetSerializer <GameEvent>(dto.SerializerType); var events = serializer.Deserialize(dto.Data); eventStorage.SaveAll(events); }