Пример #1
0
        public async Task Delete(ClaimMessage claimMessage)
        {
            var claimMessageDb = claimMessage.Adapt <ClaimMessageDB>();

            applicationDbContext.Remove(claimMessageDb);
            applicationDbContext.SaveChanges();
        }
Пример #2
0
        public async Task <long> Upload(ClaimMessage claimMessage)
        {
            try
            {
                var claimMessageDb = claimMessage.Adapt <ClaimMessageDB>();

                applicationDbContext.Add(claimMessageDb);
                applicationDbContext.SaveChanges();

                return(claimMessageDb.Id);
            }
            catch (Exception ex)
            {
                throw;
            }
        }