Exemplo n.º 1
0
        public IActionResult feedback(FeedBack model)
        {
            object[] value        = { model.fbName, model.fbContent, model.fbEmail, model.fbPhone };
            var      errorCode    = 0;
            var      errorMessage = "";

            string[] output = { };
            var      result = FeedBackRes.SaveFeedBack(value, ref output, ref errorCode, ref errorMessage);

            return(RedirectToAction("feedback"));
        }
        public IActionResult CommentDetailDeleteDrugStore(int id)
        {
            object[] value        = { id };
            var      errorCode    = 0;
            var      errorMessage = "";

            string[] output = { };
            var      result = FeedBackRes.DeleteFeedback(value, ref output, ref errorCode, ref errorMessage);

            if (result)
            {
                TempData["AlertMessage"] = "Xóa feedback Thành Công";
            }
            return(RedirectToAction("Index"));
        }
        public IActionResult Index()
        {
            List <FeedBack> lst = FeedBackRes.GetAll();

            return(View(lst));
        }