Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public async Task <int> AddAsync(SalesProjectStateLog salesProjectStateLog)
 {
     return(await SalesProjectStateLogDal.Ins.AddAsync(salesProjectStateLog));
 }