Esempio n. 1
0
        public JsonResult SaveWish(int id, string avId, string file)
        {
            int ret = 0;

            var ip = Request.UserHostAddress;

            WishList entity = new WishList()
            {
                AvId      = avId,
                IPAddress = ip,
                FilePath  = file,
                Id        = id
            };

            ret = ScanDataBaseManager.InsertWishList(entity);

            if (ret > 0)
            {
                return(Json(new { success = "success" }, JsonRequestBehavior.AllowGet));
            }

            return(Json(new { success = "fail" }, JsonRequestBehavior.AllowGet));
        }