Example #1
0
        public IEnumerable <ItemShare> Borrowed(Guid userId)
        {
            if (Guid.Empty == userId)
            {
                throw new ArgumentException("user identifier");
            }

            var sproc = new GoodsSearchItemShare()
            {
                RequesterIdentifier = userId,
            };

            return(sproc.CallObjects <ItemShare>());
        }
Example #2
0
        /// <summary>
        /// Shares By Query
        /// </summary>
        /// <param name="item">Item</param>
        /// <returns>Item Shares</returns>
        public IList <ItemShare> Shares(Item item)
        {
            if (null == item)
            {
                throw new ArgumentNullException("item");
            }

            if (Guid.Empty == item.Identifier)
            {
                throw new ArgumentException("Item Identifier");
            }

            var sproc = new GoodsSearchItemShare()
            {
                ItemIdentifier = item.Identifier,
            };

            return(sproc.CallObjects <ItemShare>());
        }