Exemplo n.º 1
0
        public async Task <IEnumerable <FundManagerModel> > GetAll()
        {
            var managers = await _client.GetAndReadFromContentGetAsync <IEnumerable <FundManager> >("api/FundManager/");

            return(managers.Select(s => _toModelMapper.Map(s)));
        }
Exemplo n.º 2
0
 public async Task <IEnumerable <FundManager> > GetAll()
 {
     return(await _client.GetAndReadFromContentGetAsync <IEnumerable <FundManager> >("api/FundManager/"));
 }
        public async Task <LoginModel> GetByUsername(string username)
        {
            var user = await _client.GetAndReadFromContentGetAsync <User>("api/UserManager/" + username);

            return(_toModelMapper.Map(user));
        }