public JsonResult addOptionAdd(JiaJiModels.OptionModel model)
 {
     try
     {
         model.OptionUrl = "/image/" + model.OptionUrl;
         var i = new JiaJiBLL.OptionBLL().AddOption(model);
         if (i > 0)
         {
             return(Json(new { Success = true, Message = "添加成功" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "添加失败" }));
         }
     }
     catch
     {
         return(Json(new { Success = false, Message = "添加失败" }));
     }
 }
        public JsonResult editOptionAdd(JiaJiModels.OptionModel model)
        {
            try
            {
                int id = model.OptionID;

                var i = new JiaJiBLL.OptionBLL().UpdOptions(model);
                if (i > 0)
                {
                    return(Json(new { Success = true, Message = "修改成功" }));
                }
                else
                {
                    return(Json(new { Success = false, Message = "修改失败" }));
                }
            }
            catch
            {
                return(Json(new { Success = false, Message = "修改失败" }));
            }
        }