public async Task <ReplyPSPMessage> GetAvailableProductsInfoAsync() { var PSPMessage = new ReplyPSPMessage(); var productItems = await _productContext.GetAvailableProductsAsync(); if (productItems != null && productItems.Count > 0) { PSPMessage.command = "GetAvailableProductsInfo"; PSPMessage.status = 200; PSPMessage.message = String.Format("Get all products Info"); PSPMessage.data = productItems; } else { PSPMessage.command = "GetAvailableProductsInfo"; PSPMessage.status = 500; PSPMessage.message = String.Format("Producst Info List is empty"); PSPMessage.data = new object(); return(PSPMessage); } return(PSPMessage); }