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