public async Task <User> Auth(User user) { User copyUser = user.Clone() as User; copyUser.Salt = await GetSalt(copyUser.Login); copyUser.Password = HashPassword(copyUser.Password, copyUser.Salt); return(await _service.GetDeserializedObject <User>($"{AppSettings.CurrentDomain}/api/account/auth", HttpMethod.Post, copyUser)); }
public async Task <List <DashboardItem> > GetItems() { NetServices service = new NetServices(); return(await service.GetDeserializedObject <List <DashboardItem> >($"{AppSettings.CurrentDomain}/api/dashboarditems")); }
public async Task <List <Company> > GetCompanies() { return(await _service.GetDeserializedObject <List <Company> >($"{AppSettings.IexTradingHost}/{AppSettings.IexTradingVersion}/ref-data/symbols", _jsonSettings)); }