Exemplo n.º 1
0
        public IEnumerable <SPNextMasterIdResult> GetNextMasterId(string TableName)
        {
            var _data = _Context.SP_ASNextMasterIdResult(TableName).ToList();
            List <SPNextMasterIdResult> objSPNextMasterIdResultList = new List <SPNextMasterIdResult>();

            foreach (var _Item in _data)
            {
                SPNextMasterIdResult _SPNextMasterIdResult = new SPNextMasterIdResult();

                _SPNextMasterIdResult.MasterId = _Item.MasterId;

                objSPNextMasterIdResultList.Add(_SPNextMasterIdResult);
            }

            return(objSPNextMasterIdResultList.ToList());
        }