public async Task <IActionResult> Create([Bind("Id,ContactType,Name,DateOfBirth,PhoneNumber,Email,PostedAvatarFile")] ContactListEntry contactListEntry) { if (ModelState.IsValid) { var success = await _service.CreateEntryAsync(contactListEntry); if (success) { return(RedirectToAction(nameof(Index))); } else { ViewBag.ErrorMessage = "Something went wrong while creating contact list entry, please try again ..."; } } return(View(contactListEntry)); }