Esempio n. 1
0
        public async Task <bool> AddCustomerReferenceAsync(MemberDocumentStorage document)
        {
            try
            {
                DocumentstorageContext context = new DocumentstorageContext(_connectionString);
                context.Add(document);
                await context.SaveChangesAsync();

                return(true);
            }
            catch
            {
                //add logging
                throw;
            }
        }
        public MemberStorageItem Convert(MemberDocumentStorage entity)
        {
            var mapper = new Mapper(_config);

            return(mapper.Map <MemberStorageItem>(entity));
        }