Beispiel #1
0
        private void FillUserHashFromLoanInfo(Profiler.LoanInfo loanInfo)
        {
            if (loanInfo == null)
            {
                return;
            }

            TryAddUser(loanInfo.User);
        }
Beispiel #2
0
        private void InsertLoanInfo(Profiler.LoanInfo loanInfo)
        {
            if (loanInfo == null)
            {
                return;
            }

            IncreaseMax();

            var entity = new Entity.tLoanInfo()
            {
                tDVD   = _currentDVDEntity,
                Loaned = loanInfo.Loaned,
                Due    = loanInfo.DueSpecified ? loanInfo.Due : (DateTime?)null,
                tUser  = TryGetUser(loanInfo.User),
            };

            _context.tLoanInfo.Add(entity);

            IncreaseCurrent();
        }