DocSas/PropertyService.Domain/ModelView/property/PropertyProvider.cs
/// <summary>
/// get property as an asynchronous operation.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get property as an asynchronous operation.
get property as an asynchronous operation .
public async Task<DSCResponse> GetPropertyAsync(Guid id)
        {
            var msg = new Dictionary<string, string>();
            var response = new DSCResponse();
            PropertyInformationVM propVm = null;
            var property = await _propertyRepo.GetSingleAsync(x => x.Id == id, navigationPath: "ZipCode");
            if (property != null)
            {
                propVm = _mapper.Map<PropertyInformationVM>(property);
                response.ResponseData = propVm;
            }
            return response;
        }
public async Task < DSCResponse > GetPropertyAsync ( Guid id ) { var msg = new Dictionary < string , string > ( ) ; var response = new DSCResponse ( ) ; PropertyInformationVM propVm = null ; var property = await _propertyRepo . GetSingleAsync ( x => x . Id == id , navigationPath : " " ) ; if ( property != null ) { propVm = _mapper . Map < PropertyInformationVM > ( property ) ; response . ResponseData = propVm ; } return response ; }
get property as an asynchronous operation.
get property as an asynchronous operation .
None
id
Guid
None