public async Task <bool> SaveNotes(SessionBto Session, byte[] Notes)
        {
            //Get full path
            string completeSavePath = GetFullPath(Session);

            //Save file
            File.WriteAllBytes(completeSavePath, Notes);
            await Task.CompletedTask;

            return(true);
        }
        public async Task <byte[]> OpenNotes(SessionBto Session)
        {
            byte[] returnValue      = null;
            string completeOpenPath = GetFullPath(Session); //Get complete path

            if (File.Exists(completeOpenPath))
            {
                returnValue = File.ReadAllBytes(completeOpenPath);
            }

            await Task.CompletedTask;

            return(returnValue);
        }
 private string GetFullPath(SessionBto Session) =>
 Path.Combine(GetFileStoredFolder(), GetFileName(Session));
 private string GetFileName(SessionBto Session) => $"{Session.ModuleId}_{Session.Id}.docx";