public async Task <IHttpActionResult> Put(int id, VehicleToBrakeConfigInputModel model)
        {
            var changeRequestId = await _vehicleToBrakeConfigApplicationService.UpdateAsync(new VehicleToBrakeConfig()
            {
                Id            = model.Id,
                VehicleId     = model.Vehicle.Id,
                BrakeConfigId = model.BrakeConfig.Id
            }, id, CurrentUser.Email);

            return(Ok(changeRequestId));
        }
        public async Task <IHttpActionResult> Post(int id, VehicleToBrakeConfigInputModel vehicleToBrakeConfigInputModel)
        {
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = vehicleToBrakeConfigInputModel.Comment
            };
            var attachments     = SetUpAttachmentsModels(vehicleToBrakeConfigInputModel.Attachments);
            var changeRequestId = await _vehicleToBrakeConfigApplicationService.DeleteAsync(null, id, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }
        public async Task <IHttpActionResult> Post(VehicleToBrakeConfigInputModel model)
        {
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = model.Comment
            };
            var attachments     = SetUpAttachmentsModels(model.Attachments);
            var changeRequestId = await _vehicleToBrakeConfigApplicationService.AddAsync(new VehicleToBrakeConfig()
            {
                Id            = model.Id,
                BrakeConfigId = model.BrakeConfig.Id,
                VehicleId     = model.Vehicle.Id
            }, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }