Exemplo n.º 1
0
        //commits repository to the db...
        private bool Commit()
        {   //search non respository UI list for pending saved marked records and mark them as valid...
            var items = (from q in WarehouseLocationCodeList where q.IsValid == 2 select q).ToList();

            foreach (WarehouseLocationCode item in items)
            {
                item.IsValid         = 0;
                item.NotValidMessage = null;
            }
            _serviceAgent.CommitWarehouseLocationCodeRepository();
            Dirty       = false;
            AllowCommit = false;
            return(true);
        }