public static async Task <InitMenuResponse> ProcessInitRestaurantMenu(RestaurantData selectedRestaurant) { try { var request = new RestRequest(AppConstants.RestApi.InitRestaurantMenu); request.AddParameter("restaurantId", selectedRestaurant.Id); var response = await BaseWebService.ExecuteGet <InitMenuResponse>(request); return(response); } catch (Exception e) { Mvx.IoCProvider.Resolve <IAppLogger>().DebugLog(nameof(ProductService), e); return(null); } }
public static async Task <GetProductByIdResponse> ProcessToGetProductById(long productId) { try { var request = new RestRequest(AppConstants.RestApi.GetProductById); request.AddParameter("productId", productId); //request.AddParameter("productId", 44); var response = await BaseWebService.ExecuteGet <GetProductByIdResponse>(request); return(response); } catch (Exception e) { Mvx.IoCProvider.Resolve <IAppLogger>().DebugLog(nameof(ProductService), e); return(null); } }