public async Task <IHttpActionResult> Post(BedLengthInputModel model)
        {
            BedLength bedLength = new BedLength()
            {
                Id = model.Id, Length = model.Length, BedLengthMetric = model.BedLengthMetric
            };
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = model.Comment
            };
            var attachments     = SetUpAttachmentsModels(model.Attachments);
            var changeRequestId = await _bedLengthApplicationService.AddAsync(bedLength, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }
        public async Task <IHttpActionResult> Put(int id, BedLengthInputModel bedLengthInputModel)
        {
            BedLength bedlength = new BedLength()
            {
                Id                      = bedLengthInputModel.Id,
                Length                  = bedLengthInputModel.Length,
                BedLengthMetric         = bedLengthInputModel.BedLengthMetric,
                VehicleToBedConfigCount = bedLengthInputModel.VehicleToBedConfigCount,
            };
            CommentsStagingModel comment = new CommentsStagingModel()
            {
                Comment = bedLengthInputModel.Comment
            };
            var attachments     = SetUpAttachmentsModels(bedLengthInputModel.Attachments);
            var changeRequestId = await _bedLengthApplicationService.UpdateAsync(bedlength, bedlength.Id, CurrentUser.Email, comment, attachments);

            return(Ok(changeRequestId));
        }