public JsonResult Send(string name, string mobile, string address, string email, string content) { var feedback = new Feedback(); feedback.Name = name; feedback.Email = email; feedback.CreatedDate = DateTime.Now; feedback.Phone = mobile; feedback.Content = content; feedback.Address = address; var id = new ContactDao().InsertFeedBack(feedback); if (id > 0) { return Json(new { status = true }); //send mail } else return Json(new { status = false }); }
public ActionResult Inquiry() { var model = new ContactDao().GetActiveContact(); return View(model); }