public async Task <int> AddAsync(EnterCustPhaseLog log) { int id = 0; try { DataContext dataContext = new DataContext(); var info = await dataContext.EnterCustPhaseLogs.AddAsync(log); await dataContext.SaveChangesAsync(); id = info.Entity.ID; } catch (Exception ex) { ClassLoger.Error("EnterCustPhaseLogDal.AddAsync", ex); } return(id); }
public async Task <int> AddAsync(EnterCustPhaseLog log) { return(await EnterCustPhaseLogDal.Ins.AddAsync(log)); }