public async Task <IActionResult> Edit(Driver driver)
        {
            string EditDriverUri = $"{Configuration["DriverServiceEndpoint"]}/Drivers/Edit";
            await HttpRequestClient.PutRequest <object>(EditDriverUri, driver);

            string EditDriverForOrderMicroserviceUri = $"{Configuration["OrderServiceEndpoint"]}/Drivers/Edit";
            await HttpRequestClient.PutRequest <object>(EditDriverForOrderMicroserviceUri, driver);

            return(Ok());
        }
示例#2
0
        public async Task <IActionResult> Edit(Restaurant restaurant)
        {
            string EditRestaurantUri = $"{Configuration["RestaurantServiceEndpoint"]}/Restaurant/Edit";
            await HttpRequestClient.PutRequest <object>(EditRestaurantUri, restaurant);

            string EditRestaurantForCustomerMicroserviceUri = $"{Configuration["CusotmerServiceEndpoint"]}/Restaurant/Edit";
            await HttpRequestClient.PutRequest <object>(EditRestaurantForCustomerMicroserviceUri, restaurant);

            string EditRestaurantForOrderMicroserviceUri = $"{Configuration["OrderServiceEndpoint"]}/Restaurant/Edit";
            await HttpRequestClient.PutRequest <object>(EditRestaurantForOrderMicroserviceUri, restaurant);

            return(Ok());
        }
        public async Task <IActionResult> Edit(MenuItem menuItem)
        {
            string EditMenuItemUri = $"{Configuration["RestaurantServiceEndpoint"]}/MenuItem/Edit";
            await HttpRequestClient.PutRequest <object>(EditMenuItemUri, menuItem);

            string EditMenuItemForCustomerMicroserviceUri = $"{Configuration["CusotmerServiceEndpoint"]}/MenuItem/Edit";
            await HttpRequestClient.PutRequest <object>(EditMenuItemForCustomerMicroserviceUri, menuItem);

            string EditMenuItemForOrderMicroserviceUri = $"{Configuration["OrderServiceEndpoint"]}/MenuItem/Edit";
            await HttpRequestClient.PutRequest <object>(EditMenuItemForOrderMicroserviceUri, menuItem);

            return(Ok());
        }