public async Task InsertAsync(T entity) { ccmsServiceContext.Set <T>().Add(entity); await ccmsServiceContext.SaveChangesAsync(); }
public async Task SaveAsync(PayTmOtplog payTmOtplog) { await ccmsServiceContext.PayTmOtplog.AddAsync(payTmOtplog); await ccmsServiceContext.SaveChangesAsync(); }
public async Task SaveAsync(SLIC_TechProStatus techProStatus) { await Task.Run(() => ccmsServiceContext.SlicTechProStatus.AddAsync(techProStatus)); await Task.Run(() => ccmsServiceContext.SaveChangesAsync()); }