public JsonResult Send(string txtName, string txtPhone, string txtAddress, string txtEmail, string txtContent) { ContactDAO contactDAO = new ContactDAO(); Feedback feedback = new Feedback(); feedback.Address = txtAddress; feedback.Content = txtContent; feedback.Email = txtEmail; feedback.CreateDate = DateTime.Now; feedback.FeedbackName = txtName; txtPhone = string.IsNullOrEmpty(txtPhone) ? "0" : txtPhone; feedback.Phone = int.Parse(txtPhone); var tempstatus = contactDAO.InsertFeedback(feedback); thongbao = "Thành công"; return(Json(new { status = tempstatus })); }