예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public string GetConnectionString()
 {
     return(_configurationManagerWrapper.GetAppSettings("ChatRoomDB", string.Empty));
 }