DocSas/PropertyService.Domain/ModelView/Reviews/ReviewProvider.cs
/// <summary>
/// get reviews as an asynchronous operation.
/// </summary>
/// <param name="propertyId">The property identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get reviews as an asynchronous operation.
get reviews as an asynchronous operation .
public async Task<DSCResponse> GetReviewsAsync(Guid propertyId)
        {
            var msg = new Dictionary<string, string>();
            var response = new DSCResponse();
            IEnumerable<ReviewVM> reviews = null;
           reviews = await _reviewRepo.GetQueryAsync<ReviewVM>("GetReviews", new Dictionary<string, object>() {
                        {"recordCount", DataUtil.DefaultNumberOfRows },
                        {"propertyId",propertyId }
            });
            response.ResponseData = reviews;
            return response;
        }
public async Task < DSCResponse > GetReviewsAsync ( Guid propertyId ) { var msg = new Dictionary < string , string > ( ) ; var response = new DSCResponse ( ) ; IEnumerable < ReviewVM > reviews = null ; reviews = await _reviewRepo . GetQueryAsync < ReviewVM > ( " " , new Dictionary < string , object > ( ) { { " " , DataUtil . DefaultNumberOfRows } , { " " , propertyId } } ) ; response . ResponseData = reviews ; return response ; }
get reviews as an asynchronous operation.
get reviews as an asynchronous operation .
None
propertyId
Guid
The property identifier.
The property identifier .