Пример #1
0
        public ActionResult CommentOnStore(Comment model, int id)
        {
            DateTime datetime = DateTime.Now;

            if (ModelState.IsValid)
            {
                object[] value      = new object[] { model.cid, "" + model.name, "" + model.email, "" + model.comment, "" + datetime, "" + model.rating, "" + id };
                String   errMessage = "";
                int      errorCode  = 0;
                String[] ouput      = null;
                string   kaa        = model.cid + "" + model.name + "" + model.email + "" + model.comment + "" + datetime + "" + model.rating + "id nha thuoc" + id;
                bool     result     = DrupStoreRes.SaveComment(value, ref ouput, ref errorCode, ref errMessage);
                if (result)
                {
                    TempData["AlertMessage"] = "Cập nhật Bình Luận Thành Công";
                    return(RedirectToAction("DetailStore" + "/" + id, "HomeDrugStore"));
                }
            }
            return(View());
        }