DocSas/PropertyService.Domain/ModelView/Roles/RoleProvider.cs
/// <summary>
/// get available role as an asynchronous operation.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get available role as an asynchronous operation.
get available role as an asynchronous operation .
public async Task<DSCResponse> GetAvailableRoleAsync(Guid id)
        {
            var msg = new Dictionary<string, string>();
            var response = new DSCResponse();
            var role = await _availableRoleRepo.GetSingleAsync(x => x.Id == id);
            var map = _mapper.Map<AvailableRoleVM>(role);
            response.ResponseData = map;
            response.ErrorMessage = msg;
            return response;
        }
public async Task < DSCResponse > GetAvailableRoleAsync ( Guid id ) { var msg = new Dictionary < string , string > ( ) ; var response = new DSCResponse ( ) ; var role = await _availableRoleRepo . GetSingleAsync ( x => x . Id == id ) ; var map = _mapper . Map < AvailableRoleVM > ( role ) ; response . ResponseData = map ; response . ErrorMessage = msg ; return response ; }
get available role as an asynchronous operation.
get available role as an asynchronous operation .
None
id
Guid
None