Ejemplo n.º 1
0
        public async Task <int> Add(CurrentInStock _model)
        {
            context.Add(_model);
            await context.SaveChangesAsync();

            return(_model.Id);
        }
Ejemplo n.º 2
0
        public async Task <int> Add(Supplier _model)
        {
            _model.CreatedUser = scopeContext.UserCode;
            _model.CreatedDate = DateTime.Now;
            context.Add(_model);
            await context.SaveChangesAsync();

            return(_model.Id);
        }
        public async Task <int> Add(FarmingSeasonHistory _model)
        {
            _model.CreatedUser = scopeContext.UserCode;
            _model.CreatedDate = DateTime.Now;
            context.Add(_model);
            await context.SaveChangesAsync();

            return(_model.Id);
        }
Ejemplo n.º 4
0
        public async Task <int> Add(StockReceiveDocketDetail _model)
        {
            _model.CreatedUser = scopeContext.UserCode;
            _model.CreatedDate = DateTime.Now;
            context.Add(_model);
            await context.SaveChangesAsync();

            return(_model.Id);
        }
        public async Task <int> Add(ExpenditureDocketType _model)
        {
            _model.CreatedUser = scopeContext.UserCode;
            _model.CreatedDate = DateTime.Now;
            context.Add(_model);
            await context.SaveChangesAsync();

            return(_model.Id);
        }