예제 #1
0
        private LendingEntity GetLendingInformation(string itemid)
        {
            var itemEntity = this.itemRepository.SelectByID(itemid);

            var itemLending = new LendingEntity
            {
            };

            return(itemLending);
        }
예제 #2
0
        public void InsertLendingInformation(string itemId, string userEmail)
        {
            var lendingEntity = new LendingEntity
            {
                IssueDate  = DateTime.Today,
                Issuer     = userEmail,
                ItemIssued = itemId
            };

            this.lendingRepository.Insert(lendingEntity);
        }
예제 #3
0
 public void Delete(LendingEntity obj)
 {
     TestData.lendingEntities.Remove(obj);
 }
예제 #4
0
 public void Update(LendingEntity obj)
 {
     TestData.lendingEntities.Remove(obj);
     TestData.lendingEntities.Add(obj);
 }
예제 #5
0
 public void Insert(LendingEntity obj)
 {
     TestData.lendingEntities.Add(obj);
 }