private FilterViewModel GetAll(FilterViewModel vm) { var client = new HttpClientWrapper <IList <EmployeeViewModel> >(); var url = configurationManagerWrapper.GetAppSettings("LocalApiUrl") + "api/employees"; var result = client.GetAsync(url).Result; vm.Employees = result; return(vm); }
public async Task <IEnumerable <EmployeeDto> > GetAllAsync() { var client = new HttpClientWrapper <IList <EmployeeDto> >(); var url = configurationManagerWrapper.GetAppSettings("MasGlobalUrl"); var result = await client.GetAsync(url + "api/Employees"); return(result); }
public string GetConnectionString() { return(_configurationManagerWrapper.GetAppSettings("ChatRoomDB", string.Empty)); }