public async Task DeleteAsync(CommRates commRate, EntityContextWEB context) { context.CommRates.Remove(commRate); await context.SaveChangesAsync(); }
public async Task UpdateAsync(CommRates commRate, EntityContextWEB context) { context.Entry(commRate).State = EntityState.Modified; await context.SaveChangesAsync(); }