Exemple #1
0
        public IEnumerable <OrderDetail> search(string albumId, string orderId)
        {
            if (albumId == null && orderId == null)
            {
                return(new List <OrderDetail>());
            }
            Int32 realAlbumId, realOrderId;

            if ((!Int32.TryParse(albumId, out realAlbumId) && albumId != null) ||
                (!Int32.TryParse(orderId, out realOrderId) && orderId != null))
            {
                WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.NotAcceptable;
                return(null);
            }
            else
            {
                return(orderDetailDao.SimpleCompositeFind(getCondtions(albumId, orderId, realAlbumId, realOrderId).ToArray()));
            }
        }