public async Task <ObjectResult> UpdateTrainAsync([FromBody] GeneralTrainRequest request, [FromRoute] int id)
        {
            Train result = _trainServices.TrainRepository.Update(request.ToDTO(id));
            await _trainServices.CommitChanges();

            return(Ok(result));
        }
        public async Task <ObjectResult> CreateTrainAsync([FromBody] GeneralTrainRequest request)
        {
            Train result = await _trainServices.TrainRepository.CreateAsync(request.ToDTO());

            await _trainServices.CommitChanges();

            return(Ok(result));
        }