public ActionResult UpdateFile(Guid id, FileUpdateDto fileUpdateDto)
        {
            if (!Request.Headers.ContainsKey("token"))
            {
                return(Unauthorized());
            }

            var auth         = Request.Headers["token"];
            var accountModel = _validate.GetAccountByToken(auth);

            if (accountModel == null)
            {
                return(Unauthorized());
            }

            var fileModelFromRepo = _repository.GetFileById(id, accountModel.Id);

            if (fileModelFromRepo == null)
            {
                return(NotFound());
            }

            _mapper.Map(fileUpdateDto, fileModelFromRepo);

            _repository.UpdateFile(fileModelFromRepo);

            _repository.SaveChanges();

            return(NoContent());
        }