public ActionResult LienHe(Contact entity, string txtCaptcha) { if (ModelState.IsValid) { string text = Session["CAPTCHA"].ToString(); if (txtCaptcha.ToLower() == text.ToLower()) { var model = new Contact(); model.contactFullName = entity.contactFullName; model.contactTitle = entity.contactTitle; model.contactEmail = entity.contactEmail; model.contactBody = entity.contactBody; model.createTime = DateTime.Now; model.isTrash = false; _contactServices.Add(model); _contactServices.Save(); return(Redirect("/")); } return(View(entity)); } return(View(entity)); }