public async Task Delete(ClaimMessage claimMessage) { var claimMessageDb = claimMessage.Adapt <ClaimMessageDB>(); applicationDbContext.Remove(claimMessageDb); applicationDbContext.SaveChanges(); }
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; } }