private LendingEntity GetLendingInformation(string itemid) { var itemEntity = this.itemRepository.SelectByID(itemid); var itemLending = new LendingEntity { }; return(itemLending); }
public void InsertLendingInformation(string itemId, string userEmail) { var lendingEntity = new LendingEntity { IssueDate = DateTime.Today, Issuer = userEmail, ItemIssued = itemId }; this.lendingRepository.Insert(lendingEntity); }
public void Delete(LendingEntity obj) { TestData.lendingEntities.Remove(obj); }
public void Update(LendingEntity obj) { TestData.lendingEntities.Remove(obj); TestData.lendingEntities.Add(obj); }
public void Insert(LendingEntity obj) { TestData.lendingEntities.Add(obj); }