public ActionResult <FileReadDto> CreateFile(FileCreateDto fileCreateDto)
        {
            var fileModel     = _mapper.Map <Files>(fileCreateDto);
            var fileDataModel = _mapper.Map <Filedata>(fileCreateDto);

            if (_validate.GetAccountById(fileModel.AccountId) == null)
            {
                ModelState.AddModelError("accountId", $"The account with key: {fileModel.AccountId}, does not exist");
                return(ValidationProblem());
            }

            _data.CreateFileData(fileDataModel);
            _repository.SaveChanges();

            fileModel.DataId = fileDataModel.Id;

            _repository.CreateFile(fileModel);
            _repository.SaveChanges();

            var fileReadDto = _mapper.Map <FileReadDto>(fileModel);

            return(CreatedAtAction(nameof(CreateFile), new { id = fileReadDto.Id }, fileReadDto));
        }