DocSas/PropertyService.Domain/ModelView/Secures/MiscProvider.cs
/// <summary>
/// get country by code as an asynchronous operation.
/// </summary>
/// <param name="code">The code.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get country by code as an asynchronous operation.
get country by code as an asynchronous operation .
public async Task<DSCResponse> GetCountryByCodeAsync(string code)
        {
            var data = await _country.GetAsync(x => x.Code == code);
            return new DSCResponse()
            {
                ResponseData = data.FirstOrDefault()
            };
        }
public async Task < DSCResponse > GetCountryByCodeAsync ( string code ) { var data = await _country . GetAsync ( x => x . Code == code ) ; return new DSCResponse ( ) { ResponseData = data . FirstOrDefault ( ) } ; }
get country by code as an asynchronous operation.
get country by code as an asynchronous operation .
None
code
string
None