public JsonResult AddTimeSubsidies(GlobalConfigSubsidies model)
        {
            var list = new GlobalConfigProvider().GetTimeSubsidies(0);

            list.Add(model);
            var newlist = (from globalConfigTimeSubsidiese in list
                           orderby ParseHelper.ToInt(globalConfigTimeSubsidiese.Value1) ascending
                           select globalConfigTimeSubsidiese).ToList();
            string values = GetTimesValues(newlist);
            bool   b      = new GlobalConfigProvider().UpdateTimeSubsidies(UserContext.Current.Name, values, "添加时间补贴设置操作-设置之后的值:" + values, 0, -1);

            return(Json(new ResultModel(b, string.Empty), JsonRequestBehavior.AllowGet));
        }
        public JsonResult AddOverStoreSubsidies(GlobalConfigSubsidies model)
        {
            var list = new GlobalConfigProvider().GetOverStoreSubsidies();

            if (list.Exists(m => m.Value1 == model.Value1))
            {
                return(Json(new ResultModel(false, "跨店数量不能重复"), JsonRequestBehavior.AllowGet));
            }
            list.Add(model);
            var newlist = (from globalConfigTimeSubsidiese in list
                           orderby ParseHelper.ToDouble(globalConfigTimeSubsidiese.Value1) ascending
                           select globalConfigTimeSubsidiese).ToList();
            string values = GetTimesValues(newlist);
            bool   b      = new GlobalConfigProvider().UpdateSubsidies(UserContext.Current.Name, values, "添加跨店抢单-设置之后的值:" + values, "OverStoreSubsidies", 0, -1);

            return(Json(new ResultModel(b, b == true?string.Empty:"添加失败!"), JsonRequestBehavior.AllowGet));
        }