public async Task <IList <IObject> > Get() { try { ServiceHelperModel serviceHelperModel = new ServiceHelperModel { Endpoint = "fabric:/SystemPattern/SystemPattern.ProductCatalog", methodName = "GetAllProducts" }; var allP = await _service.InvokeService(serviceHelperModel); return(allP); } catch (Exception ex) { throw; } }