public async Task <IHttpActionResult> Post(int id, WheelBaseInputModel model)
        {
            WheelBase wheelBaselength = new WheelBase()
            {
                Id = model.Id, Base = model.Base, WheelBaseMetric = model.WheelBaseMetric
            };
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = model.Comment
            };
            var attachments     = SetUpAttachmentsModels(model.Attachments);
            var changeRequestId = await _wheelBaseApplicationService.DeleteAsync(wheelBaselength, id, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }
        public async Task <IHttpActionResult> Put(int id, WheelBaseInputModel wheelBaseInputModel)
        {
            WheelBase wheelBase = new WheelBase()
            {
                Id                      = wheelBaseInputModel.Id,
                Base                    = wheelBaseInputModel.Base,
                WheelBaseMetric         = wheelBaseInputModel.WheelBaseMetric,
                VehicleToWheelBaseCount = wheelBaseInputModel.VehicleToWheelBaseCount,
            };
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = wheelBaseInputModel.Comment
            };
            var attachments     = SetUpAttachmentsModels(wheelBaseInputModel.Attachments);
            var changeRequestId = await _wheelBaseApplicationService.UpdateAsync(wheelBase, wheelBase.Id, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }
        public async Task <IHttpActionResult> Replace(int id, WheelBaseInputModel model)
        {
            WheelBase brakeConfig = new WheelBase()
            {
                Id                  = model.Id,
                Base                = model.Base,
                WheelBaseMetric     = model.WheelBaseMetric,
                VehicleToWheelBases = model.VehicleToWheelBases.Select(item => new VehicleToWheelBase
                {
                    WheelBaseId = item.WheelBaseId,
                    Id          = item.Id,
                    VehicleId   = item.VehicleId
                }).ToList(),
            };

            CommentsStagingModel comment = new CommentsStagingModel {
                Comment = model.Comment
            };
            var attachments = SetUpAttachmentsModels(model.Attachments);

            var changeRequestId = await _wheelBaseApplicationService.ReplaceAsync(brakeConfig, id, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }