public int UploadFile(IFormFile file) { FileUpload fileUpload = new FileUpload(); fileUpload.FileData = _utils.GetByteArrayFromFile(file); fileUpload.FileName = file.FileName; return(_fileUploadRepository.UploadFile(fileUpload)); }