Ejemplo n.º 1
0
        public ActionResult SendFeedback(FeedbackViewModel feedbackViewModel)

        {
            if (ModelState.IsValid)
            {
                Feedback newFeedback = new Feedback();
                newFeedback.UpdateFeedback(feedbackViewModel);
                _feedbackService.Creat(newFeedback);
                _feedbackService.Save();
                ViewData["SuccessMsg"]    = "gửi phản hồi thành công";
                feedbackViewModel.Name    = "";
                feedbackViewModel.Email   = "";
                feedbackViewModel.Message = "";
            }
            feedbackViewModel.ContactDetail = GetDetail();
            return(View("Index", feedbackViewModel));
        }