DocSas/PropertyService.Domain/ModelView/Users/UserProvider.cs
/// <summary>
/// get user types as an asynchronous operation.
/// </summary>
/// <returns>Task&lt;DSCResponse&gt;.</returns>
get user types as an asynchronous operation.
get user types as an asynchronous operation .
public async Task<DSCResponse> GetUserTypesAsync()
        {           
            var data = await _userTypeRepo.GetAsync(x => x.IsValid.ToBool());
            var model = _mapper.Map<IEnumerable<UserType>, IEnumerable<UserTypeVM>>(data);
            return new DSCResponse()
            {
                ResponseData = model
            };
        }
public async Task < DSCResponse > GetUserTypesAsync ( ) { var data = await _userTypeRepo . GetAsync ( x => x . IsValid . ToBool ( ) ) ; var model = _mapper . Map < IEnumerable < UserType > , IEnumerable < UserTypeVM > > ( data ) ; return new DSCResponse ( ) { ResponseData = model } ; }
get user types as an asynchronous operation.
get user types as an asynchronous operation .
None