public ActionResult Contact(ContactViewModel model) { if (!ModelState.IsValid) { return(View(model)); } try { _mailingRepository.CustomMail(model.Email, model.Name, model.Message); } catch { return(View("_Error", new string[] { })); } return(RedirectToAction("Index")); }