public ActionResult Create(ContatoModel contato) { try { if (ModelState.IsValid) { repo.SaveByName(contato, User.Identity.Name.ToString()); return(RedirectToAction("Index")); } else { return(View(contato)); } } catch { return(View()); } }