public async Task <IActionResult> Home(RestApiViewModel model) { var client = new RestApiService(new Uri(ConstantString.RestApiBaseURI)); var response = await client.GetRestApiResponse(JsonConvert.DeserializeObject <TransactionRequest>(model.TransationRequest)); model.TransationResponse = response; return(View(model)); }