public ActionResult Contact(LienHe contact) { if (ModelState.IsValid) { try { ContactService ctService = new ContactService(); if (ctService.PostContact(contact)) { return RedirectToAction("Contact", new { message = "Thông tin của bạn đã gửi thành công" }); } ModelState.AddModelError("", "Đã có lỗi xảy ra, vui lòng thử lại"); } catch (Exception) { ModelState.AddModelError("", "Đã có lỗi xảy ra, vui lòng thử lại"); } } return View(); }