Пример #1
0
        public int UpdateCheckingScrap(CheckingScrapViewModel _user)
        {
            ConnectionFactory      sqlConnection = new ConnectionFactory();
            CheckingScrapViewModel record        = new CheckingScrapViewModel();

            using (SqlConnection connection = sqlConnection.GetConnection())
            {
                return(CheckingScrapDatalayer.GetInstance().UpdateCheckingScrap(connection, _user));
            }
        }
Пример #2
0
        public List <CheckingScrapViewModel> GetCheckingScrap(string RFID, bool isDone)
        {
            ConnectionFactory sqlConnection = new ConnectionFactory();
            var record = new List <CheckingScrapViewModel>();

            using (SqlConnection connection = sqlConnection.GetConnection())
            {
                record = CheckingScrapDatalayer.GetInstance().GetCheckingScrap(connection, RFID, isDone);
                return(record);
            }
        }