public async Task <IActionResult> Delete(Guid id, ContactInfo entry) { try { var item = await dataService.DeleteContactInfoItem(id); if (item != null) { return(RedirectToAction("Details", "Contact", new { id = item.ContactId })); } else { return(BadRequest("Не удалось удалить запись")); } } catch { return(View()); } }