public async Task Save(ClaimWorkflow claimWorkflow) { var claimworkflowDB = claimWorkflow.Adapt <ClaimWorkflowDB>(); applicationDbContext.ClaimWorkflows.Add(claimworkflowDB); applicationDbContext.SaveChanges(); }
public async Task RegisterWorkflow(long stateId, long claimId, string userName) { var workflow = ClaimWorkflow.NewInstance(); workflow.ClaimStateId = stateId; workflow.ClaimId = claimId; workflow.UserName = userName; await claimWorkflowRepository.Save(workflow); }