Exemple #1
0
        public static void SaveDocument(byte[] bytes)
        {
            DocumentsEntities context = new DocumentsEntities();

            context.Docs.FirstOrDefault().DocBytes = bytes;
            context.SaveChanges();
        }
Exemple #2
0
        public static byte[] GetDocument()
        {
            DocumentsEntities context = new DocumentsEntities();

            return(context.Docs.FirstOrDefault().DocBytes.ToArray());
        }