public async Task <ActionResult> Create(Customer customer) { ViewBag.Status = string.Empty; if (ModelState.IsValid) { bool result = await APIServices.CreateCustomers(customer, Request.Files).ConfigureAwait(false); //if (result) // ViewBag.Status = "Data Saved Successfully."; //return View(customer); } return(RedirectToAction("Index")); }