// Get: Contacts/Edit/Id
        public ActionResult Edit(int id)
        {
            var contact = _context.Contacts.SingleOrDefault(c => c.Id == id);

            if (contact == null)
            {
                return(HttpNotFound());
            }
            var viewModel = new RandomContactsViewModel
            {
                Contact = contact
            };

            return(View("New", viewModel));
        }
 public ActionResult New(RandomContactsViewModel viewModel)
 {
     return(View(viewModel));
 }