public async Task <DealFileScope> CreateAsync(DealFileScope dealFileScope, CancellationToken cancellationToken = default(CancellationToken))
        {
            if (dealFileScope == null)
            {
                throw new ArgumentNullException(nameof(dealFileScope));
            }
            Context.Add(dealFileScope);
            await Context.SaveChangesAsync(cancellationToken);

            return(dealFileScope);
        }
 public async Task DeleteAsync(DealFileScope dealFileScope, CancellationToken cancellationToken = default(CancellationToken))
 {
     if (dealFileScope == null)
     {
         throw new ArgumentNullException(nameof(dealFileScope));
     }
     Context.Remove(dealFileScope);
     try
     {
         await Context.SaveChangesAsync(cancellationToken);
     }
     catch (DbUpdateConcurrencyException)
     {
         throw;
     }
 }