public async Task <IActionResult> CreateNew(ProductModel productModel) { StringContent content = new StringContent(JsonConvert.SerializeObject(productModel), Encoding.UTF8, "application/json"); if (await MVCHelper.PostAPI(string.Format("{0}", configuration.GetSection("baseUrl").Value + "api/SaveCreate/"), content)) { return(RedirectToAction("Index", "Products")); } return(RedirectToAction("Index", "Products")); }