DocSas/PropertyService.Domain/ModelView/Users/UserProvider.cs
/// <summary>
/// get user type as an asynchronous operation.
/// </summary>
/// <param name="id">The identifier.</param>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get user type as an asynchronous operation.
get user type as an asynchronous operation .
public async Task<DSCResponse> GetUserTypeAsync(Guid id)
        {
            var data = await _userTypeRepo.GetSingleAsync(x => x.Id == id);
            var model = _mapper.Map<UserType, UserTypeVM>(data);
            return new DSCResponse()
            {
                ResponseData = model
            };
        }
public async Task < DSCResponse > GetUserTypeAsync ( Guid id ) { var data = await _userTypeRepo . GetSingleAsync ( x => x . Id == id ) ; var model = _mapper . Map < UserType , UserTypeVM > ( data ) ; return new DSCResponse ( ) { ResponseData = model } ; }
get user type as an asynchronous operation.
get user type as an asynchronous operation .
None
id
Guid
None