Esempio n. 1
0
        public Task <Dictionary <DateTime, MonthCostDetails> > GetCostsPerMonth()
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.GetCostsPerMonthAsync());
        }
Esempio n. 2
0
        public Task <List <BusinessUnitCostDetails> > GetCostsPerMonthPerBusinessUnit()
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.GetCostsPerMonthPerBusinessUnitAsync());
        }
Esempio n. 3
0
        public Task <BaseResult> DeleteRelation(Vehicle v, VehicleToEmployeeRelation r)
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.DeleteEmployeeRelationAsync(v, r));
        }
Esempio n. 4
0
        public Task <List <Vehicle> > GetAll()
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.GetVehiclesAsync());
        }
Esempio n. 5
0
        public Task <BaseResult> Delete(Vehicle v)
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.DeleteVehicleAsync(v));
        }
Esempio n. 6
0
        public Task <List <Employee> > GetAll()
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.GetEmployeesAsync());
        }
Esempio n. 7
0
        public Task <BaseResult> Delete(Employee e)
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(fleeter.DeleteEmployeeAsync(e));
        }
Esempio n. 8
0
        public async Task <List <BusinessUnit> > GetAll()
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(await fleeter.GetBusinessUnitsAsync());
        }
Esempio n. 9
0
        public async Task <BaseResult> Delete(BusinessUnit bu)
        {
            var fleeter = new FleeterServiceClient();

            fleeter.Open();
            return(await fleeter.DeleteBusinessUnitAsync(bu));
        }