public ActionResult onRowUpdating(Hotel_Evaluate item)
        {
            Hotel_Evaluate row = new Hotel_Evaluate().GetByHotel_EvaluateID(item.Hotel_Evaluate_ID);

            row.Hotel_ID = item.Hotel_ID;
            row.CreateBy = item.CreateBy;
            row.Created  = item.Created;
            row.Score    = item.Score;
            row.Content  = item.Content;

            row.Update();
            return(JsonMax(new { result = "Success" }));
        }
        public ActionResult onRowRemoving(Hotel_Evaluate item)
        {
            Hotel_Evaluate location = new Hotel_Evaluate().GetByHotel_EvaluateID(item.Hotel_Evaluate_ID);

            try
            {
                location.DeleteByID();
                return(JsonMax(new { result = "Success" }));
            }
            catch (Exception ex)
            {
                return(JsonMax(new { result = "NG", data = ex.ToString() }));

                ; throw ex;
            }
        }
        public ActionResult onRowInserting(Hotel_Evaluate item)
        {
            int id = item.Insert();

            return(JsonMax(new { result = "Success", data = id }));
        }