Beispiel #1
0
        public IActionResult AddHistoricalPositions([FromBody] HistoricPositionsDTO positions)
        {
            if (positions == null || positions.Name == null || positions.Positions == null)
            {
                throw new ArgumentNullException(nameof(positions));
            }
            if (positionRepository.AddPositions(positions))
            {
                return(Ok());
            }

            return(BadRequest());
        }